Personal tools
You are here: Home Community Help Center How-tos Executing a Test Class in IDEA

Executing a Test Class in IDEA

During development it is really useful to execute single test classes or even debug them in order to bashing bugs.

Purpose

After the execution of the ant cruise or test target, you may realize that some tests have failed. Once you have inspected the assert failures or errors in the JUnit reports, you may want to inspect a single test step by step.

Step by step

  1. Open the test class and right click in it in order to open the context menu.
  2. Select 'Run ClaimsFilterTests' or any other test class name and then chose the 'Grails Tests configuration' in the popup dialog 'Choose configuration type to run'.
    Select a Test Case
  3. The proceeding two steps update the run/debug combo box. You may now click on the Run or Debug button after the combo box in order to execute the test.
    Run or Debug
  4. The run panel displays log messages and the result of the test. Furthermore the second last line indicates where you can find the test report.
    Test Log
  5. Copy this url and paste it in your browser in order to see the test reports.
    Test Report

 

 

 

Document Actions