UnitTestRunner from within UnitTest?


#1

Hi, 


My class inherits from UnitTestRunner to implement a threaded test suite. I want to inherit from UnitTest also in order to report the log messages in different files (one per test). Is there a way to get the UnitTestRunner from within the initialise method? 

At first glance it's not possible since there is no getter and the pointer is protected.

private:

    //==============================================================================

    const String name;

    UnitTestRunner* runner;

Is there an elegant solution? Is this a reasonable feature request?


#2

Forget it.

Don't inherit from UnitTest and manage everything from the UnitTestRunner side is much more smart. 

Sorry to thinking out loud.