Hi, from standard Fantom code, is there a way to setTest.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.
SlimerDude Thu 16 Nov 2023
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 allowcurTestMethod
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.