- Home /
Can we create playmode tests outside of the main build assembly?
I just tried to create my first playmode test. It is the public IEnumerator with [UnityTest] method which i put in my Editor folder(and thus assembly) where all my editor tests reside. However, unity test runner can't see it.
It does find the tests which are in my Assets folder, in the Assembly-CSharp. This also have added the NUnit framework (and, interestingly, my NSubstiture and FluentAssertions assemblies, which are configured to only be included in Editor platform):
So i wonder: can i separate the tests into the Editor assembly altogether? Does the additional assemblies and test files slow the main build(when unity compiles files when i focus the window or hit the play button)?
Your answer
Follow this Question
Related Questions
How to load a scene in PlayMode tests 2 Answers
How to mock or skip execution of Awake in playmode unit tests? 2 Answers
How to implement mandatory cleanup for the Unity PlayMode tests? 1 Answer
Run playmode tests in cloud build - Unity 2017.1 0 Answers
Adding Game Assembly causes type or namespace errors 0 Answers