Skip to content

Commit

Permalink
Disable tests on release pipeline (#13)
Browse files Browse the repository at this point in the history
Tests are run during merge to main branch, and they do not run correctly on windows server core containers such as those currently used for release.
  • Loading branch information
CZEMacLeod authored Aug 21, 2023
1 parent 4280f91 commit f9d963c
Showing 1 changed file with 30 additions and 27 deletions.
57 changes: 30 additions & 27 deletions build/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ trigger:
pr: none

pool:
# vmImage: windows-latest
name: 'C3D Windows'
demands:
- msbuild
- MSBuild_17.0
- visualstudio
- Agent.OS -equals Windows_NT
- VisualStudio.BuildTools.Version -gtVersion 17.0
vmImage: windows-latest
# name: 'C3D Windows'
# demands:
# - msbuild
# - MSBuild_17.0
# - visualstudio
# - Agent.OS -equals Windows_NT
# - VisualStudio.BuildTools.Version -gtVersion 17.0

variables:
- group: Github-Packages
Expand Down Expand Up @@ -172,25 +172,28 @@ steps:
clean: true
msbuildArgs: '/t:$(target) /p:ProjectToBuild="$(project_to_build)" /p:ContinuousIntegrationBuild=true /p:PackageOutputPath="$(Build.ArtifactStagingDirectory)" /p:BuildUser="$(buildUser)" /p:BuildMachine="$(buildMachine)" /p:AssemblyOriginatorKeyFile="$(snk.secureFilePath)"'

- task: VSTest@2
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: |
**\*.Tests.dll
!**\*TestAdapter.dll
!**\*TestCentric*.dll
!**\*TestHost*.dll
!**\*TestPlatform*.dll
!**\obj\**
searchFolder: 'test'
vstestLocationMethod: 'version'
vsTestVersion: 'toolsInstaller'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
codeCoverageEnabled: true
minimumExpectedTests: 0
failOnMinTestsNotRunFail: false
failIfCoverageEmpty: false
## Ignore tests for now as the main branch is protected and will have been tested before merge
## Playwright tests do not run on windows server core containers - see https://github.com/CZEMacLeod/PlaywrightWindowsServerCore2022

# - task: VSTest@2
# inputs:
# testSelector: 'testAssemblies'
# testAssemblyVer2: |
# **\*.Tests.dll
# !**\*TestAdapter.dll
# !**\*TestCentric*.dll
# !**\*TestHost*.dll
# !**\*TestPlatform*.dll
# !**\obj\**
# searchFolder: 'test'
# vstestLocationMethod: 'version'
# vsTestVersion: 'toolsInstaller'
# platform: '$(buildPlatform)'
# configuration: '$(buildConfiguration)'
# codeCoverageEnabled: true
# minimumExpectedTests: 0
# failOnMinTestsNotRunFail: false
# failIfCoverageEmpty: false

- task: PublishBuildArtifacts@1
inputs:
Expand Down

0 comments on commit f9d963c

Please sign in to comment.