CoViewDeveloper : Menu Options

CoViewDeveloper is an Eclipse plug-in that lets you create JUnit tests, improve code testability, and measure path coverage. Through the CoView JUnit Developer view, you can highlight your paths, identify per method coverage, and create additional JUnit, DbUnit and HttpUnit test cases.

CoViewDeveloper contains two sets of menu options.

The first set is available by selecting from the top pane. Available menu options include:

  • Show Untested Methods: Displays methods that have no tests written against them. NOTE: A method may have a test case, but that test case may not execute a recommended path; thus, it will be considered 'untested'.
  • Show Paths in View: This option removes or adds the Path (or lower) pane.
  • Vertical View Orientation: Displays the panes vertically.
  • Horizontal View Orientation: Displays the panes horizontally.

The second set of menus is available by right-clicking on a test case from within CoViewDeveloper. Available menu options include:

  • Run Individual Test: This option lets you execute an individual test instead of the the entire test class.
  • Debug Individual Test: This option lets you debug an individual test instead of the the entire test class.
  • Add Test...: This creates a new test within the JUnit test case currently opened in the CoView Editor. The test contains the necessary CoView annotations and method invocations. A fail assertion is added if defined in the CoView Preferences. You may have to modify the parameters and assertion to match a particular untested path.
  • Add HttpUnit Test...: This invokes a dialog that allows you to specify a name for your new test method, and a URL to be invoked. CoView creates the new test method and provides the basic framework for making a request and getting a response from the URL you provided. Since an HttpUnit test invokes a URL instead of a method, CoView cannot determine the method under test. Click on the Ambiguous Method Under Test annotation in the left margin to specify the method being tested by the URL invocation.
  • Add setUp(): This option adds the setUp() method.
  • Add tearDown(): This option adds the tearDown() method.
  • Add @Before Method: This option adds a @Before method to the test case file.
  • Add @After Method:This option adds an @After method to the test case file.
  • Add @BeforeClass Method: This option adds a @BeforeClass method to the test case file.
  • Add @AfterClass Method: This option adds an @AfterClass method to the test case file.
  • Highlight Tested Code: This option lets you view executed code in the CoView Editor.
  • Highlight Untested Code: This option lets you untested code in the CoView Editor.
  • Refresh CoView Proxy: This option auto-generates a class proxy within the test case that allows testing of inaccessible methods (e.g., private or protected methods).
  • Delete: Deletes the current test from the test case.
  • Duplicate: Duplicates the current test case and appends a "_copy" on the test case name. This option is useful for creating tests to execute untested paths.
  • Compare Tested Paths To: This option lets you visually compare a tested path to an untested path. Certain decisions will be highlighted in the CoView Editor with either a (indicating this decision should be made false to execute the untested path) or (indicating this decision should be made true to execute the untested path).
  • Highlight Tested Path: This option displays the executed path within the CoView Editor.
  • Refresh: Refreshes the CoView JUnit Outline view.
  • View in CoView Quality Manager: If licensed CoViewManager, selecting this option will highlight the test case in the CoView Quality Manager view.
  • View in CoView JUnit Manager: If licensed CoViewManager, selecting this option will highlight the test case in the CoView JUnit Manager view .

.