How to unit test a project outside of visual studio

I did a project in visual studio and also implemented unit testing. The code works fine with unit testing.

Now I have doubts that it is possible to implement unit testing outside the visual studio environment, so that I only use the exe generated by my project and check it for several cases?

I am looking for an option that can use my current unit testing implementation

I am new to unit testing, so any help would be appreciated

early

+4
source share
5 answers

Installing MSTest without Visual Studio is not a completely trivial thing. This tool has been very useful to me in this regard.
Outcome from here

+1
source

You can use an external library such as NUnit, there is a manager to run your test

+1
source

If from the outside you mean outside the Visual Studio IDE, then you can use mstest.exe , which uses VS internally. This in itself means that the host does not need VS. So, for example, the build system can trigger this and make the unit test closer to the end of the build.

+1
source

If you are using the Microsoft test environment, you can run MSTest.exe from the command line.

+1
source

If you configure your test classes according to this SO answer, you can run them in either MSTest or NUnit based on the compilation option. Hope this helps!

Using both MSTest and NUnit?

+1
source

Source: https://habr.com/ru/post/1440765/


All Articles