minitest/excludes.rb extends MiniTest::Unit::TestCase to provide a
clean API for excluding certain tests you don’t want to run under
certain conditions.
Changes:
1.0.1 / 2012-02-22
2 bug fixes:
Fixed instance_eval for better error reporting. (headius)
Use undef_method to wipe tests brought in via modules. (headius)
I am wondering, why would one ever use “skip” now as opposed to using this new
exclude feature?
I did too. It is so that the jruby project can run ruby-core tests w/o modifying
them.
Short story: we want to run MRI’s tests without modifying them.
excludes provide us a way to have our own isolated list of test
methods to exclude.
I expect this would be useful for any large API’s test suite you want
to incrementally support while maintaining a “high water” mark of
currently-passing tests.
Charlie
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.