소스 검색

Publish test results as Junit XML

default_compile_flags
vector-of-bool 4 년 전
부모
커밋
a6680d60ec
3개의 변경된 파일25개의 추가작업 그리고 0개의 파일을 삭제
  1. +21
    -0
      azure-pipelines.yml
  2. +3
    -0
      pytest.ini
  3. +1
    -0
      tools/dds_ci/main.py

+ 21
- 0
azure-pipelines.yml 파일 보기

@@ -29,6 +29,13 @@ stages:
poetry run dds-ci || exit 1
move _build\dds.exe _build\dds-win-x64.exe || exit 1
displayName: Build and Test
- task: PublishTestResults@2
displayName: Publish Tests
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/pytest-junit.xml'
failTaskOnFailedTests: true
testRunTitle: Windows Tests
- publish: _build\dds-win-x64.exe
displayName: Publish
artifact: dds-win-x64
@@ -40,6 +47,13 @@ stages:
steps:
- script: make alpine-static-ci
displayName: Build and Test
- task: PublishTestResults@2
displayName: Publish Tests
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/pytest-junit.xml'
failTaskOnFailedTests: true
testRunTitle: Linux Tests
- publish: _build/dds-linux-x64
displayName: Publish
artifact: dds-linux-x64
@@ -57,6 +71,13 @@ stages:
displayName: Get Python Dependencies
- script: make macos-ci
displayName: Build and Test
- task: PublishTestResults@2
displayName: Publish Tests
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/pytest-junit.xml'
failTaskOnFailedTests: true
testRunTitle: macOS Tests
- publish: _build/dds-macos-x64
displayName: Publish
artifact: dds-macos-x64

+ 3
- 0
pytest.ini 파일 보기

@@ -0,0 +1,3 @@
[pytest]
junit_log_passing_tests=true
junit_logging=all

+ 1
- 0
tools/dds_ci/main.py 파일 보기

@@ -99,6 +99,7 @@ def run_pytest(dds: DDSWrapper, args: CommandArguments) -> int:
str(args.jobs),
f'--basetemp={basetemp}',
f'--dds-exe={dds.path}',
f'--junit-xml={paths.BUILD_DIR}/pytest-junit.xml',
str(paths.PROJECT_ROOT / 'tests/'),
])


Loading…
취소
저장