CoView Test Case Wizard: Creating a New CoView JUnit Test Suite

The CoView Test Case Wizard walks you through the creation of a JUnit test case or test suite for a class. The wizard creates fully functional JUnit tests (using fail assertions) for methods you choose. These tests are meant to exercise at least one data-flow path and can be duplicated and modified to other paths.

The New CoView JUnit Test Suite wizard allows you to create a new JUnit test suite. To create a test suite, the following information must be specified.

  • Source Folder: Identifes the source folder within the project that will contain the test case
  • Package: Identifies the Java package to which the test case belongs
  • Name: Identifies the name of the test suite to be created

Next, select the test classes to be included in the suite. You can add a main method invocation for Test Suites using the CoView Preferences.

CoView Test Suite

Select Finish on the wizard to proceed.

At this point the test suite is created and the CoView JUnit Runner is automatically started. Coverage for all classes specified in the test suite can be reviewed by looking at the CoView Quality Manager, and the tested path(s) can be identified in the CoView JUnit Developer view.