In Ruby’s Test::Unit, how do I get the current test_ method’s name? In MiniTest, this can be done by self.__name__, however, it doesn’t work for the full version.
In Ruby’s Test::Unit, how do I get the current test_ method’s name? In MiniTest,
Share
I got it!
The test name gets passed up the inheritance chain, so I just needed to capture it and save it locally for my reference.