Hi, I have the following project structure: ```My...
# community-support
i
Hi, I have the following project structure:
Copy code
Myproject
    ├── src
    ├── test
        └──package1
            ├──aTest.kt
            ├──bTest.kt
        └──package2
            ├──cTest.kt
            ├──dTest.kt
Running all tests works fine but when I try to run tests per package using IntelliJ I receive error:
Copy code
No matching tests found in any candidate test task.
    Requested tests:
        Test pattern package1.* in task :test
In my tests I use package name
com.myproject.package1
. IntelliJ tries to run it in the following way
:test --tests "package1.*"
and it fails as above because full package path should be used which is
"com.myproject.package1.*"
I suspect IntellIj is responsible for selecting package and creating run command? Or maybe it can be configured somehow in Gradle's config?
v
I'd also say you need to report that to JetBrains, yes. As a work-around you can probably move
package1
and
package2
folders into
com/myproject/
.