Writing new tests
java-demo contains one existing test class,
In order to generate new tests for a class which is not currently covered, select the
TicTacToe class* in the project tool window.
Right-click and select the
Write Tests option from the menu. The plugin builds the project before analyzing the code and creating the tests. Once the project has been built, click the progress bar at the bottom of the screen to open a pop-up window.
The progress window will show the different stages that the analysis is going through. While the code is being analyzed, it is possible to view current progress, but with
java-demo that will be a very short time-frame.
Once the new tests have been created, they will be automatically integrated into the project under
* Note that it is also possible to select modules or packages from the project tool window, or an individual method/class from within the source editor, and right-click to
Write Tests for those particular components of the project.