Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

SonarQube UnitTests

# Run Unit tests
- task: DotNetCoreCLI@2
displayName: 'Run Unit tests'
inputs:
command: test
projects: '**/src/Tests/**/*.csproj'
arguments: '--configuration $(buildConfiguration) /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=./TestResults/'
Source by lakshaykaushik2506.medium.com #
 
PREVIOUS NEXT
Tagged: #SonarQube #UnitTests
ADD COMMENT
Topic
Name
5+9 =