jdaugherty opened a new issue, #151:
URL: https://github.com/apache/grails-intellij-plugin/issues/151

   When running Controller unit tests with Grails, they work. When running unit 
tests with the Junit runner in IntelliJ, they fail. I've debugged the issue, 
and it seems that in DefaultHtmlRenderer, the 'suffix' field is not populated 
from the Config.groovy file when running the test in IntelliJ. In Grails 
however, the suffix is loaded (which is populated with 'Instance'). So, when 
having a test like:
   ```
       void "Test the create action returns the correct model"() {
           when:"The create action is executed"
               controller.create()
   
           then:"The model is correctly created"
               model.profileInstance!= null
       }
   ```
   The code succeeds in Grails, since there is a field called 
'profileInstance'. When running the test in IntelliJ, the model is also 
populated, but then with the field 'profile' (see screenshot).
   
   These are just standard generated tests (by Grails), nothing is added or 
removed in them.
   
   ---
   
   *Imported from 
[IDEA-121016](https://youtrack.jetbrains.com/issue/IDEA-121016) · Type: Bug · 
Votes: 0*
   *Comments, attachments, dates and reporter are not part of the export — 
follow the link above for the full history.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to