Actions provided by Unit tests

There are several actions provided by JUnit module, all of them appears either in popup menu under the Tools|Tests submenu or in main menu Tools|Tests. Additionally they can be assigned to the toolbar using the Tools|Options.

Unit tests actions are related to the node from which they was invoked. You can invoke them on nodes identifying package, source file or class. Tests execution can be started from either the node belonging to the tested source code or from one identifying the test.

JUnit module offers currently three actions, which are described in details later.

popup_actions.gif

Actions provided by the JUnit Module

Create Test Action

This action can be used to generate test skeletons, it generates the skeleton either from scratch or re-generates existing one. It has to be invoked on the node identifying the tested source. The 'Configuration of Unit tests' dialog box will be displayed to allow you to set up parameters of test skeletons generator.

Open Test Action

This action simply opens the source code of the test class belonging to the tested class. It can be invoked on the same nodes like Create Test Action. Note, that you can use hidden file system to hold your test classes and in that case, Open Test Action is the only way how you can access the source code of the test.

Run Test Action

This action starts execution of the test. you can invoke it on the node identifying either the tested source code or the test itself. Test is executed using the executor selected in the Unit tests options (see menu Project|Unit tests|Executor). Currently three types of execution are available - external, internal and debugger.