Using Test Suite in Gradle but not in IntelliJ

Hi all,

I’ve included test suite class to execute my tests using Gradle. Something like:

test {
    include '**/AllTests.class'

This works fine when executing ‘gradle test’ from CLI, but when I try to execute certain test class from IntelliJ using Ctrl+Shift+F10, it throws:

No tests found for given includes: [**/AllTests.class]

I don’t want to change setting to run tests using IntelliJ in Settings → Build, Execution, Deployment → Gradle → Run tests using : IntelliJ IDEA, since I can achieve the desired behavior in Maven using maven-surefire-plugin includes.

Any help would be greatly appreciated.

Can you knit an MCVE that shows the problem?
I suspect it might be an IntelliJ shortcoming to be reported there though.