Skip to content

[Maintenance] Add JUnit XML test reporting#127

Open
korbinian90 wants to merge 3 commits into
mainfrom
ci-ui-improvement
Open

[Maintenance] Add JUnit XML test reporting#127
korbinian90 wants to merge 3 commits into
mainfrom
ci-ui-improvement

Conversation

@korbinian90
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 4, 2026 08:33
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds JUnit-style test result reporting to the MATLAB test runner and wires that reporting into the GitHub Actions test workflow so CI can publish per-test results.

Changes:

  • Add a new junitxml option to spm_tests and attach a JUnit XML plugin when enabled.
  • Enable JUnit XML output in the MATLAB CI test commands and upload each matrix job’s XML as an artifact.
  • Add a follow-up workflow job that downloads those artifacts and publishes aggregated test results in GitHub.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
spm_tests.m Adds the new junitxml option and JUnit XML plugin hookup in the MATLAB test runner.
.github/workflows/matlab.yml Enables JUnit XML generation in CI, uploads per-job XML artifacts, and adds a result-publication job.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread spm_tests.m
Comment on lines +136 to +137
plugin = XMLPlugin.producingJUnitFormat(junitFile);
runner.addPlugin(plugin);
uses: matlab-actions/run-command@v1
with:
command: addpath(pwd); results = spm_tests('class','regression','display',true); assert(all(~[results.Failed]));
command: addpath(pwd); results = spm_tests('class','regression','display',true,'junitxml',true); assert(all(~[results.Failed]));
Comment thread spm_tests.m
% cobertura: save code coverage results in the Cobertura XML format [default: false]
% tag: test tag selector [default: '', ie all tests]
% tap: save a Test Anything Protocol (TAP) file [default: false]
% junitxml: save test results in JUnit-style XML [default: false]
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

Test Results (per test)

    5 files    445 suites   28m 53s ⏱️
  210 tests   209 ✅ 0 💤 1 ❌
1 050 runs  1 049 ✅ 0 💤 1 ❌

For more details on these failures, see this check.

Results for commit 596252e.

♻️ This comment has been updated with latest results.

@korbinian90 korbinian90 force-pushed the ci-ui-improvement branch from 3b1aeec to 596252e Compare May 4, 2026 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants