-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running check task in a subproject runs all check test tasks in all project #114
Comments
In the next release, the API will be redesigned, the launch of all tests will be enabled with a separate flag. However, in general, this is not very convenient, because tests do not always use classes from other projects and running all tests takes too long. |
Personally if I have kover enabled to recollect all tests coverage in the root module, I would expect that if I run the tests for a specific project, that the coverage was not created, or in other words, kover shouldn't be executed. I understand it is difficult/impossible to get coverage without running all test tasks for all modules, but the previous behavior should be "easily" implemented. The flag you mentioned would do what I said? |
In the next release, a report for a specific project will be built only on the basis of tests of this project. To change this behavior, you will need to explicitly add a dependency on another project, the tests of which should be performed before generating the report (or verification). It is impossible to rely on the implicit order of calling test tasks in the command line, because this will complicate the use of the cache and may lead to unpredictable results. |
That is perfect if only projects depending among them are the only test tasks executed and non dependent projects are just skipped. Is there any place to check the roadmap for Kover and some ETAs? |
The exact finding of the projects of which classes fall into the test classpath may not be such a trivial task for all target platforms (Java, Kotlin JVM, Kotlin Multi-Platform, Android). Complicating the search is the fact that classes can be used in test tasks bypassing project dependencies (see |
Please try |
It is fixed, god job 😀 |
With Kover enabled if I run
./gradlew some-project:check --dry-run
implies running multiple tasks in other projects (looks like any test task in other non-dependant projects is executed).Disabling Kover and rerunning the previous task fix the issue, so Kover is binding all projects in some way.
./gradlew some-project:koverHtmlProjectReport --dry-run
has this issue too, so I think all kover tasks have this problem.The text was updated successfully, but these errors were encountered: