- Home /
Question by
junglemason · Apr 10, 2018 at 12:28 AM ·
editortestingeditor extensionnunit
How can I pause an EditMode test so I can look at the Hierarchy?
I want to have automated tests for an editor extension I'm making. I'm running my nunit test in the Test Runner in EditMode. It creates a new scene and builds up a Hierarchy programmatically. In order to make sure my Asserts are doing what they should, I want to look at the Hierarchy that is generated to make sure I built my test right in the first place. I want to debug my test.
Anyway, editor tests run and then automatically clear the Hierarchy and scene when they are done. How do I prevent that so I can examine the Hierarchy that was created? I'd like to either pause the test, like a breakpoint or similar to Debug.Break, OR just have it not blow the scene away when it's done testing; just leave the Hierarchy there when it's done.
Comment