jeggy
10/16/2023, 10:26 AM./gradlew check versus running the check gradle task from intellij gradle plugin, is not providing the same results. When running from Intellij, it's using some annoying cache, which causes not to run all tests (even if running the clean task beforehand). Anyone know why or how I can force intellij to run all tests when running the check gradle task?Javier
10/16/2023, 10:28 AMVampire
10/16/2023, 10:29 AMcheck from the tool window in IntelliJ is like running ./gradlew :check so just running the task in the selected project, for example root project, while ./gradlew check runs check in all projects of the build where it exists.jeggy
10/16/2023, 10:30 AMjeggy
10/16/2023, 10:31 AMjeggy
10/16/2023, 10:32 AM:check that is being run by Intellij, is running all tests (sometimes).
Do you know how I could make sure that it will run all tests?Vampire
10/16/2023, 10:33 AMjeggy
10/16/2023, 10:35 AMVampire
10/16/2023, 10:35 AMVampire
10/16/2023, 10:36 AMMaybe I shall just trust gradle moreProbably. 😄 You could use "Run anything" (Ctrl+Ctrl) And then type in "gradle test --rerun" or "gradle check --rerun-tasks"
jeggy
10/16/2023, 10:36 AMTasks > verification > checkAdam S
10/16/2023, 10:37 AMjeggy
10/16/2023, 10:39 AMjeggy
10/16/2023, 10:40 AMVampire
10/16/2023, 10:41 AMinstead of opening the tasks within a specific project I just go directly intoThat is a specific project, the root project. It just seems you cannot run likeTasks > verification > check
:check or :foo:check, but it always runs check with the working directory of the selected project, so runs the task in root project and all descendents or foo and all descendents.Vampire
10/16/2023, 10:43 AM--rerun-tasks force-reruns all tasks in the task graph, --rerun only force-reruns the task for which it was specified. That's why with test you can use --rerun, but with check you need to use --rerun-tasks as --rerun would only force-rerun check which is useless as it has no actions anyway.Adam S
10/16/2023, 10:46 AMVampire
10/16/2023, 10:49 AMVampire
10/16/2023, 10:51 AMJeff Lockhart
10/16/2023, 5:59 PMcleanAllTests task before check to re-run all tests without needing to clean the entire build.Vampire
10/16/2023, 8:51 PM