Description
Publish Test Results is a GitHub Action that reads unit test result files and publishes them on GitHub. It understands JSON output from Dart and Mocha, TRX files from MSTest and Visual Studio, and XML from JUnit, NUnit and xUnit. It runs on Linux, macOS and Windows runners and on self-hosted runners. The README gives a setup for Linux runners that support Docker, and separate non-Docker variants for macOS, Windows and self-hosted Linux, along with a Bash variant for Windows machines without PowerShell. The step is written to run even when earlier test steps fail, unless the workflow was cancelled. Two settings control behaviour: action_fail decides whether the action itself fails when tests fail, and fail_on decides when the published results show failure. When a workflow runs the action more than once, each run needs its own check_name, or the results overwrite each other. The README explains that granting extra permissions is needed for the results to appear, and it lists the changes in version 2, including new defaults for check_name and comment_title. The source is public on GitHub.…
Highlights
- Reads JUnit, NUnit, xUnit, TRX, Dart and Mocha results
- Works on Linux, macOS and Windows runners
- Self-hosted runner support with and without Docker
- Failure rules with action_fail and fail_on
- Unique check names for multiple runs
Ratings & Reviews
No ratings yet
Be the first to rate Publish Unit Test Result Action.
People also visit
Publish Unit Test Result Action FAQ
What does this action do?
It reads the unit test result files your tests produce and publishes the results on GitHub, so you can see them in your workflow.
Which test formats work?
The README lists JSON from Dart and Mocha, TRX from MSTest and Visual Studio, and XML from JUnit, NUnit and xUnit.
Why do I see 'Resource not accessible by integration'?
The README says you have to grant additional permissions, or set up support for pull requests from forks and for branches created by Dependabot.
Does a failing test make the action fail?
Not by default. The action_fail setting controls that, and fail_on controls when the published results show a failure.
Can I use it more than once in a workflow?
Yes, but each run needs a unique check_name, otherwise the results overwrite each other.
What are the best Publish Unit Test Result Action alternatives?
Popular alternatives to Publish Unit Test Result Action include Test Reporter, Tesults and Jacoco Report. See all Publish Unit Test Result Action alternatives









