Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space ENGINES1031 and version 10.3.4

You can import and view coverage results from a local execution XML file or from DTP. The Coverage view shows the percentage of coverage, as well as how many lines of code are covered with tests of the available lines in the file. 

  1. Choose Parasoft> Show View> Coverage from the main menu.
  2. Click the coverage drop down menu.

    Conditional Content
    product: (cpptest, jtest)
    product: (cpptest, jtest)
    sv-attr:0A01020401598D973E6641760F8AF4E50A01020401598D973E6749C5267CE6FE 0A01020401598D973E671AAA268425A3

  3. Choose your options for viewing coverage information:

    Import fromsee Importing Coverage for more information about importing coverage.
    Sort byYou can sort by file name or percentage of coverage in ascending or descending order.
    Merge coverageEnabling this option combines coverage information when additional coverage data is imported; disabling this option clears the coverage view and replaces it with the new data.


  4. Import coverage data from an XML file or from DTP (see Importing Coverage). The Coverage view will show the percentage of coverage, as well as how many lines of code are covered with tests of the available lines in the file.

    Conditional Content
    product: (cpptest, jtest)
    product: (cpptest, jtest)
    sv-attr:0A01020401598D973E6641760F8AF4E50A01020401598D973E6749C5267CE6FE 0A01020401598D973E671AAA268425A3

  5. Click a file to view the classes in the file.

  6. Click a class to open it in the editor and display the methods.

  7. Click a method to view it in the editor with color-coded markers that indicate coverage.

    Conditional Content
    product: (cpptest, jtest)
    product: (cpptest, jtest)
    sv-attr:0A01020401598D973E6641760F8AF4E50A01020401598D973E6749C5267CE6FE 0A01020401598D973E671AAA268425A3

  • Covered lines are flagged with a green marker.
  • Code that is not covered is flagged with a red marker.

Scroll Pagebreak