P
P
Pavel2018-03-07 18:21:36
Software testing
Pavel, 2018-03-07 18:21:36

Can't create playmode test in unity. Why?

Good evening! I deal with testing in the unit and stumbled upon a problem: when creating a test in a playmode, it is displayed only in EditMode. What could be wrong?
5aa003c2a89d2469211316.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Daniil Basmanov, 2018-03-07
@youkerni

Most likely, you put it in the Editor folder, which is why it got there.

D
Denis Gaydak, 2018-03-07
@MrMureno

https://docs.unity3d.com/Manual/testing-editortest...
you should read it here..
You can also create test scripts by navigating to Assets > Create > Testing, and selecting either EditMode Test C# Script or PlayMode Test C# Script.
especially this moment and, in general, a lesson on testing. tests in play mode have slightly different attributes and requirements for them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question