Skip to content

This Github Action generates a human-readable HTML report from NUnit XML test results, such as Unity Test Runner.

License

Notifications You must be signed in to change notification settings

rjtngit/nunit-html-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

NUnit HTML Report

This Github Action generates a human-readable HTML report from NUnit XML test results, such as Unity Test Runner.

Usage

- name: Generate HTML test report
  uses: rjtngit/nunit-html-action@v1
  if: always()
  with:
    inputXmlPath: test_results/results.xml
    outputHtmlPath: test_results/results.html

Example

steps:
  - name: Run tests
    uses: # your-test-runner
  - name: Make output directory writable # Might be required if you are writing to an existing directory.
    shell: bash
    if: always()
    run: sudo chmod a+w test_results
  - name: Generate HTML test report
    uses: rjtngit/nunit-html-action@v1
    if: always()
    with:
      inputXmlPath: test_results/results.xml
      outputHtmlPath: test_results/results.html
  - name: Upload test artifacts # So you can download the results from the workflow run.
    uses: actions/upload-artifact@v3
    if: always()
    with:
      path: test_results

License

The scripts and documentation in this project are released under the MIT License.

About

This Github Action generates a human-readable HTML report from NUnit XML test results, such as Unity Test Runner.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published