JUnit Test Editor

Invoking the Test Editor
TestEditor Features
Preferences
FAQ

   

Invoking the Test Editor

Before invoking the Test Editor, you first need to generate your test classes. Right-Click on the project or the class and select CodePro Tools > Generate Test Cases. For more information, see the section on JUnit Test Case Generation.

The CodePro Test Editor is invoked by Right-clicking the test class and selecting Open With > CodePro Test Editor.

Open With > CodePro Test Editor

Test Editor Pane

By default the Test editor view preference is set to "split with source on left". When you open a test class the source pane is on the left and the test editor pane is one the right. You can change this setting in the CodePro > JUnit > TestEdito preference page.

Split Pane View

Here is a sample of a tabbed pane. You should see a two "notebook like" tabs at the bottom of the editor labeled Source and Tests. Click on the Tests tab to see the test methods in the Test Editor pane.

Tabbed Pane View


Test Editor Features and Functionalities

Methods List

New Test Method
Add Assertion Column Dialog    
Added Assert Columns
Duplicated Row
Confirm Delete Dialog
Color Codes
Failure Message

To find out more about a failed test, hover your mouse over the cell and a description of the error in the form of a tooltip will appear.

Failed Message


Keyboard shortcuts