While Team CodeRush has been hard at work delivering top-notch drops of CodeRush for Visual Studio at a brisk 30-day sprint pace, we have also been working on a little something on the side for developers working in the Azure DevOps space.
It’s CodeRush Server, and it’s designed to provide insight and analysis into the health of your entire code base - one solution at a time.
Meet CodeRush Server
CodeRush Server analyzes code coverage and test run results, showing you the most robust and the most vulnerable parts of your code. CodeRush Server also scans your entire solution, finding unusual and high-risk lines of code that might need another look, or even corrective action.
Trend Analysis
CodeRush Server helps you spot trends and growing problems before they get out of hand. Improvements in solution health (with respect to a previous selected build) are indicated with an upward-pointing green triangle () and regressions in health (between selected builds) are indicated with downward-pointing red triangle (), as shown below:
In addition to these at-a-glance indicators of solution health deltas, CodeRush Server also displays the magnitude of change for each metric. with the light gray numbers below the line.
So, for example, in the following close-up, the light gray “-1” indicates we have one fewer failing test (compared against the selected baseline build). Because that’s an improvement, CodeRush Server notes the change with the green upward-pointing triangle.
We can also see from the close-up above that there are 95 ignored tests in this build, and those 95 are 318 fewer than the baseline's ignored test count. “318” is in light gray and appears below the total – that’s means it’s the magnitude of change. Also note that since ignored tests are generally not a strong indicator of solution health, CodeRush Server does not mark this change with up or down arrows.
View Results
After a solution build, you can view the health of your code base on the Home tab, or by clicking the CodeRush Server icon on the left.
The following pages contain summarized results as well as detailed reports:
Dashboard
The dashboard summarizes solution health, and reveals changes to key health indicators (such as code coverage, failing and passing test cases, code issues, etc.) since your last build (or the last build you specify as the baseline).
Unit Tests
This page shows test run results, with the ability to filter by test result of interest:
Select an individual test to see the code behind it (including its failure point, if any), its history, and other relevant details.
Code Coverage
See the most vulnerable parts of your code base, which may need more unit test coverage, as well as the strongest, most robust code in your solution:
You can easily scale the scope of your code coverage evaluation from an entire namespace all the way down to a single line of code.
Code Issues
CodeRush Server identifies unusual, suspect, and potentially high risk code with a variety of code issue analyzers:
You can see the complete code issue summary, drill into a particular issue, and filter issues by severity.Easy to Install & Setup
It’s easy to get started with CodeRush Server. Simply install the extension, then add the CodeRush Server Analyze task after the solution build.