How do I run a suite-level set up and teardown (before and after ALL the tests have run) with minitest 5? I am trying to replicate the functionality of custom test runner that was written for rails 3, currently upgrading it to rails 4.
This may appear to be a copy of Ruby Minitest: Suite- or Class- level setup? but the functionality of .runner has been deprecated in minitest 5.0+
For example I would like these to run before and after all the tests.
def before_suites
# code to run before the first test
p "Before everything"
end
def after_suites
# code to run after the last test
p "After everything"
end