Skip to content

Commit 86a1b50

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
Added test steps to run the examples
1 parent 353a22b commit 86a1b50

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

azure-pipelines.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ steps:
2929
command: 'build'
3030
projects: '**/Xunit.Microsoft.DependencyInjection.csproj'
3131
arguments: '--configuration $(BuildConfiguration)'
32+
- task: DotNetCoreCLI@2
33+
displayName: 'Running tests in example folder'
34+
inputs:
35+
command: 'test'
36+
projects: '**/examples/Xunit.Microsoft.DependencyInjection.ExampleTests'
37+
arguments: '--configuration $(BuildConfiguration)'
38+
testRunTitle: 'Running sample tests'
3239

3340
- script: echo Started publishing
3441
- task: DotNetCoreCLI@2

0 commit comments

Comments
 (0)