- Home /
Unity 5.6, Testrunner, Edit mode, how to run tests automatically on compile
Before the update, the Unity test tools test runner window 'hamburger icon' in the top right had an option to set the tests to run automatically every time the code compiles. That option is no longer there. Where is it?
Answer by Tomek-Paszek · May 09, 2017 at 08:58 AM
It wasn't reimplemented... sorry about that. It shold come back at some point. In the meantime you can implement a similar behaviour with DidReloadScripts callback (just invoke the test run from the script).
Thanks for your answer @$$anonymous$$ek-Paszek . I think many of the users would be happy to see some example code regarding this workaround to know exactly how, and where to implement the callback.
Which class and method do I call to "invoke the test run"? The only classes that aren't attribute classes I could find in UnityEditor.TestTools are LogAssert and $$anonymous$$onoBehaviourTest ??
Your answer
Follow this Question
Related Questions
The type or namespace name `SceneManagment' does not exist in the namespace 1 Answer
How to run tests that require Input? 1 Answer
How can I use VSCode as a diff/merge tool for Unity Collaborate? 1 Answer
Test build on android/apple 0 Answers
Debugging tools that can be used with Unity in Native OS and multithreading envi? 0 Answers