Dave Craggs 7 Posted April 13, 2022 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
Sherlock 663 Posted April 13, 2022 To what end? As a form of global TearDown? Share this post Link to post
Dave Craggs 7 Posted April 14, 2022 Worked it out. Needed to implement OnTestingEnds in TDUnitXNullLogger 2 Share this post Link to post
Uwe Raabe 2057 Posted April 14, 2022 (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, 2022 by Uwe Raabe 1 Share this post Link to post
Vincent Parrett 750 Posted April 15, 2022 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