Dave Craggs 3 Posted April 13 Hi All, Using the GUI test runner, how can I run code that executes after all the test have run? I tried inheriting from the main form but that was not allowed. Thanks Dave Craggs Share this post Link to post
Dave Craggs 3 Posted April 14 Worked it out. Needed to implement OnTestingEnds in TDUnitXNullLogger 2 Share this post Link to post
Uwe Raabe 1360 Posted April 14 (edited) 5 hours ago, Dave Craggs said: Needed to implement OnTestingEnds in TDUnitXNullLogger Wouldn't adding a derived logger with that implementation be a more straight forward approach? Otherwise any registered logger derived from TDUnitXNullLogger would trigger that print out. Edited April 14 by Uwe Raabe 1 Share this post Link to post
Vincent Parrett 460 Posted April 15 8 hours ago, Uwe Raabe said: Wouldn't adding a derived logger with that implementation be a more straight forward approach? This ^, you shouldn't modify TDUnitXNullLogger - just create new logger (implements ITestLogger). Most of the methods would be no-ops (like the null logger). Share this post Link to post