- Home /
Unity Testing - How to 'Quit' application from test, but continue running test. ,Unity testing - how to 'quit' application, but continue running rest of unit test?
Hi!
I am trying to write a unit test that ensures long-running async tasks spawned within the unity application clean up in reasonable time after exiting the application. The test I have written does the following:
-Spin up a c# task that is coded to run for a minute or longer -Quit the unity application immediately once the task is running -Ensure that task is no longer running after a reasonable time after closing application.
The problem with my test as described is that Application.Quit is unsupported when running tests from the editor, or when ran from within a standalone player, it closes the application AND stops the running unit test as well.
Is there a way to Quit the application in a test, but still continue running the rest of the unit test?
Your answer
![](https://koobas.hobune.stream/wayback/20220613015127im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Tests and code coverage analysis 0 Answers
Load a script from code and access it's parameters. 1 Answer
loop until u find non duplicate 1 Answer