From 02835faebda7cecbf60164c27126599b2f628eb3 Mon Sep 17 00:00:00 2001 From: Stamatios Psarras Date: Sat, 26 Oct 2024 00:05:19 +0100 Subject: [PATCH] Removed VSTest --- impact-testing.yml | 70 +++++++++++++++++++++++----------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/impact-testing.yml b/impact-testing.yml index 2c225bbac..1e59aa2a6 100644 --- a/impact-testing.yml +++ b/impact-testing.yml @@ -76,44 +76,44 @@ stages: solution: 'GsaGH.sln' configuration: 'Debug' - - task: VisualStudioTestPlatformInstaller@1 - displayName: 'Install Test Platform' - inputs: - packageFeedSelector: 'nugetOrg' - versionSelector: 'specificVersion' - testPlatformVersion: '16.11.0' - - - task: VSTest@2 - inputs: - testSelector: 'testAssemblies' # Enables Test Impact Analysis - testAssemblyVer2: | - GsaGHTests\bin\x64\Debug\net48\GsaGHTests.dll - searchFolder: '$(System.DefaultWorkingDirectory)' - runOnlyImpactedTests: true - runInParallel: true - failOnStderr: true - codeCoverageEnabled: true - testFiltercriteria: "FullyQualifiedName~GsaGHTests.Components.Analysis.CreateAnalysisTaskTests" - - - powershell: | - $coverage_file = (Resolve-Path $(Agent.TempDirectory)/TestResults/*.trx).Path - echo $coverage_file - displayName: 'Find TRX File' - - - task: PublishBuildArtifacts@1 - condition: always() - inputs: - PathtoPublish: '$(Agent.TempDirectory)\TestResults' - ArtifactName: 'Tests Results' - publishLocation: 'Container' + #- task: VisualStudioTestPlatformInstaller@1 + # displayName: 'Install Test Platform' + # inputs: + # packageFeedSelector: 'nugetOrg' + # versionSelector: 'specificVersion' + # testPlatformVersion: '16.11.0' + + #- task: VSTest@2 + # inputs: + # testSelector: 'testAssemblies' # Enables Test Impact Analysis + # testAssemblyVer2: | + # GsaGHTests\bin\x64\Debug\net48\GsaGHTests.dll + # searchFolder: '$(System.DefaultWorkingDirectory)' + # runOnlyImpactedTests: true + # runInParallel: true + # failOnStderr: true + # codeCoverageEnabled: true + # testFiltercriteria: "FullyQualifiedName~GsaGHTests.Components.Analysis.CreateAnalysisTaskTests" + + #- powershell: | + # $coverage_file = (Resolve-Path $(Agent.TempDirectory)/TestResults/*.trx).Path + # echo $coverage_file + # displayName: 'Find TRX File' + + #- task: PublishBuildArtifacts@1 + # condition: always() + # inputs: + # PathtoPublish: '$(Agent.TempDirectory)\TestResults' + # ArtifactName: 'Tests Results' + # publishLocation: 'Container' # Publish code coverage results v2 # Publish any of the code coverage results from a build. - - task: PublishCodeCoverageResults@2 - condition: always() - inputs: - codeCoverageTool: 'Cobertura' # 'JaCoCo' - summaryFileLocation: $coverage_file + # - task: PublishCodeCoverageResults@2 + # condition: always() + # inputs: + # codeCoverageTool: 'Cobertura' # 'JaCoCo' + # summaryFileLocation: $coverage_file #pathToSources: # string. Path to Source files. #failIfCoverageEmpty: false # boolean. Fail if code coverage results are missing. Default: false.