Run unit tests in Eclipse and Visual Studio

A common hurdle when first learning to use these IDEs is to attempt to execute unit tests like a normal Java or C# programUnit Test frameworks include JUnit, MSTest, TestNG, and NUnit. They provide an easy way to organize and run test methods. What can be confusing is that unit test classes do not contain a main function, which means they cannot initially be run with the Play/Start button available in VS or Eclipse.

JUnit should be available in Eclipse by default, but an additional plugin has to be installed for TestNG.

Visual Studio supports MSTest by default and is used in the templates included with the Perfecto Lab projects.

Important: This document includes references to third-party products, Eclipse and Microsoft Visual Studio. The user interface and usage of third-party products are subject to change without notice. For the latest published information about Eclipse, see https://www.eclipse.org/documentation. For the latest published information about Microsoft Visual Studio, see https://learn.microsoft.com/en-us/visualstudio.