Skip to content

Commit 9430812

Browse files
committed
use script for test
1 parent 2d5446f commit 9430812

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

eng/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ steps:
3131
publishTestResults: false
3232
testRunTitle: $(Agent.JobName)
3333

34+
- script: |
35+
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"
36+
displayName: Run tests with coverage
37+
3438
- task: PublishTestResults@2
3539
inputs:
3640
testResultsFormat: 'VSTest'

0 commit comments

Comments
 (0)