I use Intellij(ultra version) IDE to develop Grails application.
If I have a controller named UserController and then use Intellij to create both unit and integration tests for this.
Intellij will create two files have same name but in different folder.
e.g /unit/xxx/yyy/UserControllerSpec /integration/xxx/yyy/UserControllerSpec
However, Intellij IDE has some error alert for file already exists. I know it is acceptable and I run the tests pass. Just the annoying error.
Anyone knows how to disable this Intellij annoying error?
You shouldn't have two classes with the same name in the same package even if they're in different folders. Rename one, e.g. UserControllerIntegrationSpec
or UserControllerUnitSpec
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With