Jump to content
Dave Craggs

DunitX run code after all tests have run

Recommended Posts

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
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 by Uwe Raabe
  • Like 1

Share this post


Link to post
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×