Create new test no longer asks for which test root
Answered
Hi, I'm on the latest version of Idea. I have 2 source sets in my gradle based project for tests, 'test' and 'integrationTest'.
When I use the 'create new test' intention, it no longer asks me which source set I want to create the test in. I'm pretty sure it used to do this.
Help would be much appreciated.
Thanks
Tarwinder Dhak
Please sign in to leave a comment.
Can't reproduce that (screenshot)
Could you share your build.gradle or whole project where the issue could be reproduced? You can do it privately:
https://intellij-support.jetbrains.com/hc/en-us/articles/206869619-Uploading-Large-Files-for-JetBrains-Support-Team
Thanks for the help. Looking at your screenshot, the project structure is slightly different. You have a second test-src (kotlin) directory inside the test directory, in this instance it does seem to ask me for which src directory I want to create the test.
However, in my set up I have a separate directory / module called integrationTest (not test) which contains a test src (java) directory. This one is never used to select as an option of where I want to create the test.
Not sure I've explained that too well, but I will set up and post an example project to demonstrate.
Thanks.