I'm starting up my first Play 2.4 project and I'm having an issue with IntelliJ recognizing and finding the JUnit and Play test classes. Here is a screenshot of what I see
So basically, the code intelligence isn't picking up the JUnit dependency. The test appears to run fine when I run activator test.
Questions: What can I do to get code intelligence to pick these up Do I need to mark specific directories as sources?
I have restarted intellij, and rebuilt using sbt.
Take a look at this answer: https://stackoverflow.com/a/19343428/1066240
All you need (after valid project import) is step no. 4:
- Click the red
@Test
annotation, hit Alt + Enter and choose Add junit.jar to the classpath
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