minitest
minitest is a testing framework for Ruby.
Enabling XML Output
minitest can be configured to produce JUnit XML output by installing the minitest
Ruby gem.
Then require and enable the minitest gem in your test code like this:
Run it with bundle exec ruby ruby/minitest/mixer.rb
and it will produce output that looks like this:
Test Suite Naming
The output file can be configured where you require minitest
and use the JUnitReporter
. The first argument to the constructor sets the output file.
Further Information
See an example of using minitest in a GitHub action here.
Last updated