GitLab-CI
yml example
.Net Core
image: mcr.microsoft.com/dotnet/core/sdk:3.1
stages:
- test
test:
stage: test
script:
- dotnet build
- dotnet test --no-restore --no-build --logger:"junit;LogFilePath=bin/TestResults.xml" /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=./coverage
- dotnet tool install dotnet-reportgenerator-globaltool --tool-path tools
- ./tools/reportgenerator -reports:"**/coverage.opencover.xml" -targetdir:"coverage"
artifacts:
paths:
- ./coverage
reports:
junit:
- '*/*/TestResults.xml'JavaScript
Use cases
.Net Core
JavaScript with Mocha
View

AI reviewer
Last updated