Ignacy
11/15/2024, 11:49 AMMyproject
├── 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:
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?Vampire
11/15/2024, 12:45 PMpackage1 and package2 folders into com/myproject/.Ignacy
11/15/2024, 1:34 PM