Skip to content

Commit

Permalink
filter integration tests from running on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
adstep committed Dec 18, 2022
1 parent d7e032c commit 8589fd2
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .pipelines/azure-pipelines-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
command: 'build' # `dotnet build` implicitly runs `dotnet restore` as well
projects: 'src/WinRMSharp.sln'
arguments: "--configuration ${{parameters.buildConfiguration}}"

- ${{ each framework in parameters.frameworks }}:
- ${{ if not(contains(framework, 'netstandard')) }}:
- task: DotNetCoreCLI@2
Expand All @@ -50,7 +50,7 @@ jobs:
command: test
publishTestResults: true
projects: 'src/WinRMSharp.Tests'
arguments: '--no-build --configuration ${{parameters.buildConfiguration}} --framework ${{framework}} --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=cobertura'
arguments: '--no-build --configuration ${{parameters.buildConfiguration}} --framework ${{framework}} --filter "Category!=Integration" --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=cobertura'
testRunTitle: "${{framework}} (${{parameters.os}} ${{parameters.architecture}})"

- task: ArchiveFiles@2
Expand All @@ -69,12 +69,6 @@ jobs:
workingDirectory: '$(Build.SourcesDirectory)'
failOnStderr: true

# - script: 'dotnet tool install --global dotnet-reportgenerator-globaltool'
# displayName: 'Install ReportGenerator tool'

# - script: 'reportgenerator -reports:$(Agent.TempDirectory)/**/coverage.cobertura.xml -targetdir:$(Build.ArtifactStagingDirectory)/pkg/coverage-report -reporttypes:"Cobertura"'
# displayName: 'Create reports'

- task: PublishCodeCoverageResults@1
displayName: 'Publish code coverage report'
inputs:
Expand All @@ -94,4 +88,3 @@ jobs:
inputs:
PublishBuildArtifacts: '$(Build.ArtifactStagingDirectory)/pkg/**'
ArtifactName: 'deployables-${{parameters.os}}-${{parameters.architecture}}'

0 comments on commit 8589fd2

Please sign in to comment.