P
P
Pavlo Ponomarenko2016-10-10 20:59:32
Unity
Pavlo Ponomarenko, 2016-10-10 20:59:32

How to run tests in VS2015 for a Unity project?

I have a large piece of game logic in the project, without display, which I would like to cover with tests using "Microsoft.VisualStudio.TestTools.UnitTesting". But, unfortunately, there is no such namespace in the standard Unity project. Tell me how to run tests in the IDE?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2016-10-10
@TheShock

Create a separate project in the same solution, connect your current one to it as a dependency and write tests.
Naturally, classes covered by tests should not contain unity uses, otherwise use something else for tests.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question