Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
student:eclipse:eclemma [2024/02/29 11:23] bernstdhstudent:eclipse:eclemma [2025/08/21 16:18] (current) bernstdh
Line 12: Line 12:
  
  
-Eclipse supports a variety of different //launch modes//  (e.g., for running applications, for debugging applications, ...).  If EclEmma is installed, the workbench should include a button  that looks like {{eclemma_coverage-mode.gif}} for  launching in EclEmma coverage mode. (Note:  If this button is not visible, click on  <key>Window</key>-<key>Perspective</key>-<key>CustomizePerspective</key>,  expand the "Launch" item, check "Coverage", and click <key>OK</key>.)  Expanding this button allows you to launch EclEmma.+Eclipse supports a variety of different //launch modes//  (e.g., for running applications, for debugging applications, ...).  If EclEmma is installed, the workbench should include a button  that looks like {{eclemma_coverage-mode.gif|Coverage Mode}} for  launching in EclEmma coverage mode. (Note:  If this button is not visible, click on  <key>Window</key>-<key>Perspective</key>-<key>CustomizePerspective</key>,  expand the "Launch" item, check "Coverage", and click <key>OK</key>.)  Expanding this button allows you to launch EclEmma.
  
  
Line 21: Line 21:
  
  
-  - Expand the {{eclemma_coverage-mode.gif}} button and pull down to      <key>Coverage As</key>.+  - Expand the {{eclemma_coverage-mode.gif|Coverage Mode}} button and pull down to      <key>Coverage As</key>.
   - Select the appropriate type of coverage.   - Select the appropriate type of coverage.
  
Line 37: Line 37:
  
  
-To remove the highlighting from a coverage report, click on  {{eclemma_remove-all-sessions.gif}} in the "Coverage" view.+To remove the highlighting from a coverage report, click on  {{eclemma_remove-all-sessions.gif|Coverage Mode}} in the "Coverage" view.
    
  
Line 43: Line 43:
  
  
-It is generally a good idea to create an individual JUnit tets for  each class (and sometimes for individual methods within a  class). However, when generating a coverage report you want to run  all of the tests in the suite. To do so, click on the triangle  on {{eclemma_coverage-mode.gif}} and pull down to  "Coverage configurations...". Then, select a JUnit test and click on  "Run all tests in the selected project, package, or folder" and click  on <key>Coverage</key>.+It is generally a good idea to create an individual JUnit tets for  each class (and sometimes for individual methods within a  class). However, when generating a coverage report you want to run  all of the tests in the suite. To do so, click on the triangle  on {{eclemma_coverage-mode.gif|Coverage Mode}} and pull down to  "Coverage configurations...". Then, select a JUnit test and click on  "Run all tests in the selected project, package, or folder" and click  on <key>Coverage</key>.
  
  
Line 49: Line 49:
  
  
-It's possible to have different versions of JUnit installed within Eclipse  at the same time. To use a particular test runner  click on the triangle  on {{eclemma_coverage-mode.gif}} and pull down to  "Coverage configurations...". Then, select a "Test runner" and  click on <key>Apply</key>.+It's possible to have different versions of JUnit installed within Eclipse  at the same time. To use a particular test runner  click on the triangle  on {{eclemma_coverage-mode.gif|Coverage Mode}} and pull down to  "Coverage configurations...". Then, select a "Test runner" and  click on <key>Apply</key>.