Skip to content

Commit

Permalink
Fix test execution bugs in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
daalcant committed Apr 9, 2020
1 parent 6932ead commit 68b8607
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Pipelines/core-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,21 @@ stages:
inputs:
packageType: 'sdk'
version: '3.1.x'
- task: NuGetToolInstaller@1
displayName: Install Nuget Tool
inputs:
versionSpec: '5.4.x'
- task: DotNetCoreCLI@2
displayName: 'Build Tests'
displayName: Dotnet Restore
inputs:
command: 'restore'
projects: 'UnitTest.Commands/UnitTest.Commands.csproj'
arguments: '-c $(BuildConfiguration) -o $(build.binariesdirectory)\Tests'
- task: VSTest@2
displayName: 'Run Tests'
verbosityRestore: 'Normal'
- task: DotNetCoreCLI@2
displayName: Dotnet Test
inputs:
testAssemblyVer2: UnitTest.Commands.dll
searchFolder: '$(build.binariesdirectory)\Tests'
command: 'test'
projects: 'UnitTest.Commands/UnitTest.Commands.csproj'

- stage: Build
jobs:
Expand Down

0 comments on commit 68b8607

Please sign in to comment.