"No tests found for given includes" when running Gradle tests in IntelliJ IDEA
Thanks to Ben Watson I've found solution. Since JUnit 5.4.0 there is aggregate artifact with both api and engine dependencies. So just adding one dependency to build.gradle resolved this issue.
testCompile ('org.junit.jupiter:junit-jupiter:5.6.0')
I had this error with a similar setup, but couldn't solve it with the previous answers. Resolved it by doing this.
- File > Setting (Ctrl+Alt+S)
- Build, Execution, Deployment > Build Tools > gradle
- Run Tests using: Intellij IDEA
All credit to: https://linked2ev.github.io/devsub/2019/09/30/Intellij-junit4-gradle-issue/.