result.class returns the class of the result object, but what you really want is the name of the test class, which is in result.klass.
Currently, all test reports end up in the "Minitest::Result" suite.
I guess there should be a question about whether this breaks compatibility with some earlier version of minitest, whether that matters, and what to do if it does.
result.class
returns the class of the result object, but what you really want is the name of the test class, which is inresult.klass
.Currently, all test reports end up in the "Minitest::Result" suite.
I guess there should be a question about whether this breaks compatibility with some earlier version of minitest, whether that matters, and what to do if it does.