You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
clean task suppose to clean everything including tests cache, but sometimes tests still not running again. --rerun-tasks should help, but it fails spotless task in eclipse formatter with ClassNotFoundException
According to gradle/gradle#9153 clean task just delete tests output, but not delete cache and this is expected behavior. It makes sense because if code not changed there is no point in running tests again.
But most tests in core are integration tests, they depend on other modules like input plugins. To force rerun, we can use this:
tasks.test {
outputs.upToDateWhen { false }
}
Although, here is an article why this is a bad approach 🤣
Another approach is using --no-build-cache to disable build cache, and with clean task it is works fine for me.
Or disable cache only for integration tests like this:
tasks.test {
outputs.cacheIf { false }
}
Another option is to rerun only tests:
.\gradlew test --rerun-tasks
I think this is the best approach for now.
About spotless rerun issues, turns out it is some kind of threading issue, because error always different, and it solved by disabling parallel task execution. Anyway it looks like spotless issue 😢
Issue details
clean
task suppose to clean everything including tests cache, but sometimes tests still not running again.--rerun-tasks
should help, but it fails spotless task in eclipse formatter withClassNotFoundException
Discussion started in #2280 (comment)
Jadx version
dev
Java version
17 and 21
OS
The text was updated successfully, but these errors were encountered: