diff options
| author | TheGeogeo <57634077+TheGeogeo@users.noreply.github.com> | 2026-11-24 21:52:00 +0100 |
|---|---|---|
| committer | TheGeogeo <57634077+TheGeogeo@users.noreply.github.com> | 2026-11-24 21:52:00 +0100 |
| commit | a7eb87825142df6fba9feafd1c27fcd9528e23c9 (patch) | |
| tree | 4eb97daf1e902c4d2c4f6f3873e3fa0b2a73e380 /docs/progress_dashboard.md | |
| parent | a83f0c3e14842adbc565b30f1b3fb9eccd7b44ec (diff) | |
docs: write each CTest report to a new file (DOC-DASH-CTEST-JUNIT)
With a fixed path, an aborted CTest run left the previous report in place and the dashboard recorded it again.
Diffstat (limited to 'docs/progress_dashboard.md')
| -rw-r--r-- | docs/progress_dashboard.md | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/docs/progress_dashboard.md b/docs/progress_dashboard.md index 963b8b071..d6ffebbbe 100644 --- a/docs/progress_dashboard.md +++ b/docs/progress_dashboard.md | |||
| @@ -15,12 +15,17 @@ The page is one self-contained HTML file: no network, no packages, it opens from | |||
| 15 | 15 | ||
| 16 | Use a CTest JUnit report when the run includes tests configured with `SKIP_RETURN_CODE`. CTest can log those | 16 | Use a CTest JUnit report when the run includes tests configured with `SKIP_RETURN_CODE`. CTest can log those |
| 17 | skips as `Test Passed.` in `LastTest.log`. `--ctest-junit` replaces the local log with the report, which preserves | 17 | skips as `Test Passed.` in `LastTest.log`. `--ctest-junit` replaces the local log with the report, which preserves |
| 18 | the skipped status. Use `--junit` to add independent runs. | 18 | the skipped status. Use `--junit` to add independent runs. A new file name for each run keeps an aborted CTest run |
| 19 | from reusing an older report. | ||
| 19 | 20 | ||
| 20 | ```powershell | 21 | ```powershell |
| 21 | $report = Join-Path $env:TEMP 'leonida-ctest.xml' | 22 | $report = Join-Path $env:TEMP ("leonida-ctest-{0}.xml" -f [guid]::NewGuid()) |
| 22 | ctest --test-dir runtime/build -C RelWithDebInfo --output-on-failure --output-junit $report | 23 | ctest --test-dir runtime/build -C RelWithDebInfo --output-on-failure --output-junit $report |
| 23 | python -I tools/progress_dashboard.py --out ..\leonida_progress --ctest-junit $report | 24 | if (Test-Path -LiteralPath $report -PathType Leaf) { |
| 25 | python -I tools/progress_dashboard.py --out ..\leonida_progress --ctest-junit $report | ||
| 26 | } else { | ||
| 27 | throw "CTest did not produce a JUnit report (exit $LASTEXITCODE)." | ||
| 28 | } | ||
| 24 | ``` | 29 | ``` |
| 25 | 30 | ||
| 26 | ## Sources | 31 | ## Sources |