Use Common.TestResultsDirectory for test results

This commit is contained in:
Ash Wilson
2019-02-06 10:39:26 -05:00
parent 702d5941bb
commit ccc95917cd
3 changed files with 8 additions and 8 deletions

View File

@@ -25,20 +25,20 @@ jobs:
CI: true
CI_PROVIDER: VSTS
ATOM_JASMINE_REPORTER: list
TEST_JUNIT_XML_PATH: $(Agent.HomeDirectory)/test-results
TEST_JUNIT_XML_PATH: $(Common.TestResultsDirectory)
displayName: Run tests
condition: and(succeeded(), ne(variables['Atom.SkipTests'], 'true'))
- script: find "${TEST_JUNIT_XML_PATH}" || true
env:
TEST_JUNIT_XML_PATH: $(Agent.HomeDirectory)/test-results
TEST_JUNIT_XML_PATH: $(Common.TestResultsDirectory)
displayName: Dump test results
condition: succeededOrFailed()
- task: PublishTestResults@2
inputs:
testResultsFormat: JUnit
searchFolder: $(Agent.HomeDirectory)/test-results
searchFolder: $(Common.TestResultsDirectory)
mergeTestResults: true
testRunTitle: Linux
condition: succeededOrFailed()

View File

@@ -45,20 +45,20 @@ jobs:
CI: true
CI_PROVIDER: VSTS
ATOM_JASMINE_REPORTER: list
TEST_JUNIT_XML_PATH: $(Agent.HomeDirectory)/test-results
TEST_JUNIT_XML_PATH: $(Common.TestResultsDirectory)
displayName: Run tests
condition: and(succeeded(), ne(variables['Atom.SkipTests'], 'true'))
- script: find "${TEST_JUNIT_XML_PATH}"
env:
TEST_JUNIT_XML_PATH: $(Agent.HomeDirectory)/test-results
TEST_JUNIT_XML_PATH: $(Common.TestResultsDirectory)
displayName: Dump test results
condition: succeededOrFailed()
- task: PublishTestResults@2
inputs:
testResultsFormat: JUnit
searchFolder: $(Agent.HomeDirectory)/test-results
searchFolder: $(Common.TestResultsDirectory)
mergeTestResults: true
testRunTitle: MacOS
condition: succeededOrFailed()

View File

@@ -70,14 +70,14 @@ jobs:
CI: true
CI_PROVIDER: VSTS
ATOM_JASMINE_REPORTER: list
TEST_JUNIT_XML_PATH: $(Agent.HomeDirectory)\test-results
TEST_JUNIT_XML_PATH: $(Common.TestResultsDirectory)
BUILD_ARCH: $(buildArch)
displayName: Run tests
condition: and(succeeded(), ne(variables['Atom.SkipTests'], 'true'))
- powershell: Get-ChildItem -Recurse %TEST_JUNIT_XML_PATH%
env:
TEST_JUNIT_XML_PATH: $(Agent.HomeDirectory)\test-results
TEST_JUNIT_XML_PATH: $(Common.TestResultsDirectory)
displayName: Dump test results
- task: PublishTestResults@2