mirror of
https://github.com/atom/atom.git
synced 2026-01-26 07:19:06 -05:00
Use Common.TestResultsDirectory for test results
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user