forked from BilalY/Rasagar
1.2 KiB
1.2 KiB
Workflow: Running tests
There are several ways to run tests in the Test Runner window:
- Double-click on the test or test fixture name.
- Use the Run All or Run Selected buttons at the bottom of the window.
- Right-click on any item in the test tree and choose Run in the context menu to run the test and all of its children.
When you run a test the test status icon changes to show the result and a counter in the top right corner updates:
Filters
If you have a lot of tests, and you only want to view/run a sub-set of them, you can filter them in several ways (see image above):
-
Type in the search box in the top left
-
Click a test class or fixture (such as NewTestScript in the image above)
-
Click one of the test result icon buttons in the top right
Run tests within Rider
It is possible to run unit tests in the Unity Test Framework directly from JetBrains Rider.
For more information, see the JetBrains official documentation and their blog post Run Unity tests in Rider 2018.1.