Home > SQL Developer: Unit Testing > Editing and Running a Unit ...
To edit or run a unit test, click the unit test name in the Unit Test navigator and select the desired connection for running the unit test. A pane is displayed with two tabs: Details for the unit test specification, and Results for results if you run or debug the test.
The toolbar under the Details tab for the subprogram name has a toolbar that includes the icons shown in the following figure.
Freeze View (the pin) keeps that pane in the SQL Developer window when you click another unit test in the Unit Test navigator; a separate tab and detail view pane are created for that other unit test. If you click the pin again, the unit test's detail view pane is available for reuse.
Refresh refreshes the display in the pane.
Debug starts execution of the first or next implementation of the unit test in debug mode, and displays the results in the Results tab.
Run starts normal execution of the unit test, and displays the results in the Results tab. (Before you click Run, you can specify the database user for the run operation by selecting a database connection on the right.)
Edit (pencil icon) enables you to edit the unit test specification. (If you cannot modify the unit test, lick the Edit icon.)
Commit Changes saves any changes that you have made to the unit test.
Rollback Changes discards any unsaved changes that you have made to the unit test.
If you click the Edit icon, you can modify the Startup Process, Teardown Process, and details for each implementation.
You can also specify Gather Code Coverage Statistics to have SQL Developer collect statistics related to code coverage. To view any statistics that have been gathered from unit test runs, use the Test Runs Code Coverage report. In that report, you can click a row with summary information to display detailed information in the Code Coverage Details pane.
Related Topics