Skip to content

Instantly share code, notes, and snippets.

View jrreed's full-sized avatar

James Reed jrreed

View GitHub Profile
@jrreed
jrreed / fix-unity-test-results.sh
Last active March 22, 2023 09:20
Convert Unity test results XML file into proper NUnit format
#!/usr/bin/env bash
#
# Usage: ./fix-unity-test-results.sh
#
# Unity uses NUnit under the hood for its test framework. Their command line tool outputs a NUnit
# test result XML file. See documentation:
# * https://github.com/nunit/docs/wiki/Test-Result-XML-Format#test-suite
#
# The format of this file is currently incorrect. The root element for NUnit XML test results files
# should be a '<test-run>' tag, which is missing from Unity's test results file. See issue on forum: