Running the JUnit test cases with Maven
The pom.xml
configuration file will automatically run the test cases using <skipTests>false</skipTests>
when doing Clean and Build Project (task-time-tracker) by clicking on the toolbar icon:
It is also possible to only run the testing phase of the project by navigating to Run | Test Project (task-time-tracker):
The results of the testing process can now be examined in the Output – task-time-tracker panel. Note that you may need to dock the output panel to the bottom of the IDE if it is minimized, as shown in the following screenshot (the minimized panel is usually in the bottom-left corner of the NetBeans IDE). The [surefire:test]
plugin output is displayed at the start of the testing process. There are many lines of output for configuring Spring, connecting to the database, and loading the persistence context:
We will examine the key testing output in detail soon. Scroll through the output until you reach the end of the test section:
There...