Unit Test Modules

A Unit Test Module contains a list of unit tests. Unit test modules are created and managed in the Document Explorer.

Creating a Unit Test Module

A Unit Test Module is a module that contains a list of unit tests. Unit test modules are created in the Document Explorer. A Unit Test Module can be added to the document or to any of the libraries loaded into the document. Any number of unit tests can be added to a module.

To create a Unit Test Module:

  1. From the Document Explorer, right-click the location under which the module should appear. For example, to have the module appear in the current document only, right-click the Objects node. To add the module to a library, right-click the library name or any folder within the library.
  2. Select Add unit tests from the context menu.
  3. Type a name for the module and press Enter. The new Unit Test Module will open.
  4. Save the changes to the library.

Highlighting unit tests

You can highlight and cut/copy/paste multiple tests using either keystrokes or the mouse.

Arrow keys:

Ctrl + Up arrow or Ctrl + Down arrow clears the current highlight and moves the highlight to the previous or next unit test

Shift + Up arrow or Shift + Down arrow moves the highlight to the previous or next unit test highlights all tests between the starting point and the currently active highlight.

Mouse:

Shift + Click highlights the range from the first item highlighted to the clicked item. All of the items from first item to last item are highlighted.

You can also use Ctrl + Click to highlight additional unit tests. Ctrl + Click adds the unit test under the mouse click to the list of highlighted unit tests if it isn't already highlighted.

Cut, copy, delete, and paste on multiple unit tests all work in the usual way. You can also copy or cut a list of unit tests and paste them into a document section (and vice versa).