nunit.xamarin icon indicating copy to clipboard operation
nunit.xamarin copied to clipboard

Handler when tests are done running/before app exits?

Open cclauson opened this issue 6 years ago • 0 comments

I'm working with a test running app where "FinishedLaunching()" has code similar to:

var nunit = new NUnit.Runner.App();
...
nunit.Options.TerminateAfterExecution = true;
...
LoadApplication(nunit);
return base.FinishedLaunching(app, options);

Along with terminating once the tests are done, I would also like some additional code to be executed. WillTerminate() does not seem to be guaranteed to be called and seems close to being deprecated, and I'm not sure if DidEnterBackground() is what I would want.

Was curious if there is anything obvious I'm missing. If not, would it make sense to allow a handler to be set on the test runner app to be called once all the tests are done running?

Thanks!

cclauson avatar Aug 22 '18 20:08 cclauson