Run the test

We can run test cases either with one of run options in the main menu Test or equivalent toolbar icon (see tooltip texts of toolbar icons to find out their meaning).

When the tests completes, testIDEA marks each test and section with a marker. If everything was OK, a green check mark is shown, otherwise we get a red mark with cross inside. The image below shows a test, which has passed successfully:


The Status view shows test result summary. Because all tests completed without an error, the detailed view on the right side of the status view above has green background color.

Below we can see test results with error:



Result markers on each test are convenient when implementing tests, but we can not print them or save them. This can be done with reports, which are described in the next section .