Currently CoverageLogger.currentTest provides a mechanism for recording a temporary set of statement and branch results. This is used in MUnit to calculate an accurate percentage for the current class irrespective while it's tests are running.
MUnit 2 will support running tests out of order (i.e. not run all tests in a single class sequentially). Proposal is to extend the 'currentTest' to cache each filter set and resume recording to it each time currentTest is set to the same value.
logger.currentTest = "Foo"
//Foo coverage now at 0%
//run FooTest.doSomething()
//Foo coverage now at 50%
logger.currentTest = "Bar";
//run BarTest.doSomething()
logger.currentTest = "Foo"
//run FooTest.doSomethingElse()
//Foo coverage now at 75%
Currently
CoverageLogger.currentTest
provides a mechanism for recording a temporary set of statement and branch results. This is used in MUnit to calculate an accurate percentage for the current class irrespective while it's tests are running.MUnit 2 will support running tests out of order (i.e. not run all tests in a single class sequentially). Proposal is to extend the 'currentTest' to cache each filter set and resume recording to it each time currentTest is set to the same value.