Skip to content

Commit

Permalink
improved README
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Alexandre committed Sep 3, 2018
1 parent 9dbab2c commit 3b7b838
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ The following pipeline code will:

* Start a sonar scanning session
* Build dotnet projects
* Run tests with coverage analysis and publish them using the Jenkins XUnit publisher
* Run tests with coverage analysis (using coverlet) and publish them using the Jenkins XUnit publisher
* End a sonar scanning session
* [OPTIONAL] In the end, it waits for sonar's quality gate status and sets the build outcome

*Note that in order for coverage analysis to work, you need to add the coverlet NuGet package to the unit test project.*

```groovy
node('somenode-with-docker') {
withSonarQubeEnv('my-jenkins-configured-sonar-environment') {
Expand Down Expand Up @@ -120,5 +122,6 @@ The above code will:

## Code Coverage

The above examples already implement the code-coverage analysis.
If you want to know more, check: <https://medium.com/@equiman/net-core-unit-test-and-code-coverage-with-visual-studio-code-1a384b462c5f>.
The above examples already implement the code-coverage analysis, **provided you add the coverlet NuGet package to your unit test project**.
If you want to know more, check: <https://medium.com/@equiman/net-core-unit-test-and-code-coverage-with-visual-studio-code-1a384b462c5f>.
Also, coverlet documentation here: <https://github.com/tonerdo/coverlet/>.

0 comments on commit 3b7b838

Please sign in to comment.