Prechádzať zdrojové kódy

generate pytest results

Saul Shanabrook 6 rokov pred
rodič
commit
66f0a0a577
2 zmenil súbory, kde vykonal 6 pridanie a 6 odobranie
  1. 5 5
      azure-pipelines.yml
  2. 1 1
      scripts/travis_script.sh

+ 5 - 5
azure-pipelines.yml

@@ -37,13 +37,13 @@ jobs:
     inputs:
       targetType: 'filePath'
       filePath: ./scripts/travis_script.sh
+  - task: PublishTestResults@2
+    inputs:
+      testResultsFiles: '**/test-*.xml'
+      testRunTitle: 'pytest'
+    condition: eq(variables['group'], 'python'))
   - task: Bash@3
     displayName: 'success'
     inputs:
       targetType: 'filePath'
       filePath: ./scripts/travis_success.sh
-
-  - task: PublishTestResults@2
-    inputs:
-      testResultsFiles: '**/test-*.xml'
-      testRunTitle: 'Publish pytest'

+ 1 - 1
scripts/travis_script.sh

@@ -11,7 +11,7 @@ python -c "from jupyterlab.commands import build_check; build_check()"
 
 if [[ $GROUP == python ]]; then
     # Run the python tests
-    py.test -v
+    py.test -v --junitxml=junit/test-results.xml
 fi