Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. Choose Choose Parasoft> Preferences.
  2. Click the Reports node.
  3. Enable the Detailed report for option and select Line Coverage in the metric box. Only one coverage metric can be viewed per report.
    Image Removed
    Click Apply and close the overaly window.. > Reports.
  4. In the Report Format section, choose HTML (C/C++test’s Unit Testing details) from the drop-down menu.
    Image Added
  5. Click Apply.
  6. Select the ATM project as the test scope and choose Parasoft> Test Using> User-Defined> Run Unit Tests (Project Scope). This will run all of the generated tests for the project.Open the Test Progress tab (labelled using the name of the last Test Configuration run
  7. Open the Execution> Runtime tab and enable the following options: 
    • Report unit test execution details
    • Include tasks details
    • Include passed assertion details 
    • Generate detailed test execution report 
    • Generate detailed coverage report for; then choose Line Coverage from the drop-down menu to generate a Detailed Report for this coverage metric (other metrics will be included in the Coverage Summary section and expressed as percentages)
      Image Added
  8. Click Run Test.
  9. Go to the test progress tab (the tab has the same name as the test configuration you're running).
  10. Click the Generate Report button in the upper right corner of the Test Progress tabtest progress tab to open the Report & Publish dialog.

    Image Modified

     

  11. You can verify the Reports preferences again. You may need to select the Detailed coverage report option needs to be selected before the test configuration is executed.
  12. Create a directory in the file system for storing report files.
  13. Modify the value in the Produce in field to point to the reports directory you just created, then click OK to generate the report.
    Image Removed
    In the Report & Publish dialog, configure the Report location provide the path to the location where the report will be stored.
  14. Enable the Open in browser and Generate Reports options.
    Image Added
  15. Click OK. A summary report will be generated and opened in the editor window for review. The report files will be generated in the specified location.
    Image Removed
    Note that if the tests immediately preceding the report generation contained violations associated with users, the Author section will show a list of users associated with the data in the report. Clicking on a user name will open Alternatively, you can go to the report location you configured and manually open the HTML report in a web browser.
    Image Added
  16. Click on a user name in the Tasks by Author section to view a detailed report for that user.Image Removed
    In the coverage section of the summary report, click Detailed Report to open a detailed report of the coverage data.
    Image Removed
    Note that
  17. the Click LC Detailed Report in the Coverage Summary section to view a detailed coverage report.
    Image Added

  18. Review the coverage information. You can  use the tree in the left panel to navigate to the code of interest by clicking on a filename. The detailed report displays color coding of covered, not covered, and partially covered lines of code.
    Image Removed
    Use the tree in the left panel to navigate to the code of interest. Click on the filename to view the coverage information.
    Image RemovedImage Added
  19. Click View Report in the Test Execution Details column in the Additional Reports section to view the Test Execution Details report.
    Image Added

  20. Review the Test Execution Details report.
    Image Added