#2897 Test.curTestMethod()

SlimerDude Thu 16 Nov

Hi, from standard Fantom code, is there a way to set Test.curTestMethod()?

That method returns a Java field of the same name, in the native Test.java implementation - and therefore not very accessible.

Would it be possible to enhance Test.trap() (or some other back door) to allow curTestMethod to be set?

We've written our own Fantom test runner that integrates more nicely with Continuous Integration (CI) pipelines - and some of our test setup() methods would really benefit from knowing which test method they're setting up.

Login or Signup to reply.