Skip to content
Snippets Groups Projects

Code coverage

Merged Milan Hotovec requested to merge code-coverage into dev
Files
4
+ 11
1
@@ -73,7 +73,17 @@ test_job_windows:
- $CI_COMMIT_MESSAGE =~ /merge branch/i #auto trigger for merge requests from command
- $CI_COMMIT_MESSAGE =~ /Merge remote-tracking branch/i #auto trigger for remote merge requests from command
script:
- 'dotnet test' #Run tests using console mode of MSTest (Unit)
- 'dotnet test --collect:"XPlat Code Coverage" -r "./TestResults/"' #Run tests using console mode of MSTest (Unit)¨
- 'reportgenerator "-reports:.\TestResults\*\coverage.cobertura.xml" "-targetdir:coveragereport" -reporttypes:Html'
- '(Get-Content .\coveragereport\index.html) -match "Line coverage:"'
artifacts:
expire_in: 2 days
paths:
- './coveragereport'
reports:
cobertura:
- ./TestResults/*/*.xml
#Job for testing linux
test_job_linux:
stage: test
Loading