Skip to content

Commit

Permalink
Add test results file
Browse files Browse the repository at this point in the history
  • Loading branch information
nullforce committed May 2, 2019
1 parent 795e055 commit 84f2ad1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ steps:
displayName: 'Run the Test target'
continueOnError: false

- task: PublishTestResults@2
inputs:
testResultsFormat: 'VSTest'
testResultsFiles: 'output/**/*.trx'
failTaskOnFailedTests: true

- task: CopyFiles@2
inputs:
SourceFolder: 'output'
Expand Down
2 changes: 2 additions & 0 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ class Build : NukeBuild
DotNetTest(s => s
.SetProjectFile(testProject)
.SetConfiguration(Configuration)
.SetResultsDirectory(OutputDirectory / "TestResults")
.SetLogger("trx")
.EnableNoBuild()
);
}
Expand Down

0 comments on commit 84f2ad1

Please sign in to comment.