Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grails unit & integration tests file name conflict using Intellij IDE

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?

like image 640
ttt Avatar asked Nov 11 '22 13:11

ttt


1 Answers

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.

like image 196
Burt Beckwith Avatar answered Nov 14 '22 23:11

Burt Beckwith