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
- Open the test class and right click in it in order to open the context menu.
- 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'.
- 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.
- 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.
- Copy this url and paste it in your browser in order to see the test reports.

