Browse Source

Maybe now it'll work

flabbet 5 years ago
parent
commit
97bf5a5582
1 changed files with 9 additions and 1 deletions
  1. 9 1
      azure-pipelines.yml

+ 9 - 1
azure-pipelines.yml

@@ -30,11 +30,19 @@ steps:
     projects: '**/*.csproj'
     projects: '**/*.csproj'
     arguments: '--configuration Release'
     arguments: '--configuration Release'
 
 
+- task: DotNetCoreCLI@2
+  displayName: Tests
+  inputs:
+    command: test
+    projects: '**/*Tests/*.csproj'
+    arguments: '--configuration $(buildConfiguration)'
+
 - task: PowerShell@2
 - task: PowerShell@2
   inputs:
   inputs:
     targetType: 'inline'
     targetType: 'inline'
-    script: '& "$env:userprofile\.nuget\packages\opencover\4.7.922\tools\OpenCover.Console.exe" -register:user -target:"$env:programfiles/dotnet/dotnet.exe" -targetargs:test -filter:"+[*]*" -output:".\PixiEditor_coverage.xml" -oldstyle'
+    script: '& "$env:userprofile\.nuget\packages\opencover\4.7.922\tools\OpenCover.Console.exe" -register -target:"$env:programfiles/dotnet/dotnet.exe" -targetargs:test -filter:"+[*]*" -output:".\PixiEditor_coverage.xml" -oldstyle'
     workingDirectory: 'PixiEditorTests\'
     workingDirectory: 'PixiEditorTests\'
+  displayName: Collect code coverage
 
 
 - task: CmdLine@2
 - task: CmdLine@2
   inputs:
   inputs: