MiniTest

Minitest is Ruby's default testing framework that comes built-in with Ruby. It provides a clean, simple syntax for writing tests with support for both test-unit style and spec-style testing. Minitest is fast, lightweight, and includes features like assertions, mocking, benchmarking, and parallel test execution. It's the perfect choice for Ruby applications that need reliable testing without the overhead of larger frameworks. Check out simple MinTest example.
Generate XML Report
Minitest can generate XML reports using the minitest-reporters gem, which provides JUnit-style XML output compatible with CI/CD systems.
Gemfile Configuration
Add the required gems to your Gemfile:
Test Helper Configuration
Configure XML reporting in your test/test_helper.rb:
Alternative Configuration with Multiple Reporters
For both console and XML output:
Rake Task Configuration
Create a Rakefile for running tests:
Install Tacotruck CLI
Submit Test Results
GitHub Action
Rails Application GitHub Action
For Rails applications with Minitest:
Minitest Parallel Execution
Minitest supports parallel test execution out of the box. Configure in your test helper:
Basic Parallel Configuration
Rails Parallel Testing
For Rails applications, use the built-in parallel testing:
Support and Resources
Last updated