Skip to content

Commit

Permalink
use script for test
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertk committed Nov 2, 2023
1 parent 2d5446f commit 9430812
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eng/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ steps:
publishTestResults: false
testRunTitle: $(Agent.JobName)

- script: |
dotnet test test/coverlet.collector.tests/coverlet.collector.tests.csproj -c $(BuildConfiguration) --no-build -bl:test.binlog --results-directory:"$(Build.SourcesDirectory)\artifacts\Reports" /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[coverlet.core.tests.samples.netstandard]*%2c[coverlet.tests.xunit.extensions]*%2c[coverlet.tests.projectsample]*" --diag:"$(Build.SourcesDirectory)\artifacts\log\$(buildConfiguration)\coverlet.collector.test.diag.log;tracelevel=verbose"
displayName: Run tests with coverage

- task: PublishTestResults@2
inputs:
testResultsFormat: 'VSTest'
Expand Down

0 comments on commit 9430812

Please sign in to comment.