Track associated files of executed tests to optimize test execution on file changes.
Add test-map to your Gemfile.
$ bundle add test-map
Include minitest plugin.
# filename: test/test_helper.rb
require 'test_map'
require 'test_map/minitest/plugin'
# For Rails projects...
class ActiveSupport::TestCase
include TestMap::Minitest::Plugin
# ...
end
# Or custom projects using Minitest...
class Minitest::Test
include TestMap::Minitest::Plugin
end
...
$ bundle install # install dependencies
$ bundle exec rake # run testsuite
Bug reports and pull requests are welcome on GitHub.