João Silva
04/05/2024, 10:09 AMgradle test
)
On top of that, I'd like to also run an additional command that runs screenshot tests.
I'm not sure if this is possible... But I've been struggling with it for the last couple of days.
I'll leave a couple of examples on the thread for a better understanding.João Silva
04/05/2024, 10:10 AMtasks.register("testAll") {
group = Group
description = "Run all tests except app and proposition"
dependsOn(
"module1:test",
"module2:test",
"module3:test",
)
}
João Silva
04/05/2024, 10:12 AM./gradlew verifyRoborazziDebug
at the same time of the other testsVampire
04/05/2024, 11:02 AMJoão Silva
04/05/2024, 11:04 AMVampire
04/05/2024, 11:29 AMtestAll
?João Silva
04/05/2024, 1:19 PMdependsOn(
"module1:test",
"module2:test",
"module3:test",
"verifyRoborazziDebug",
)
Gives this error:
Could not determine the dependencies of task ':testAll'.
> Task with path 'verifyRoborazziDebug' not found in root project 'GstAppsAndroid'.
So... I was wondering if there was another way of running tasks in parallelVampire
04/05/2024, 1:51 PM./gradlew verifyRoborazziDebug
works, but dependsOn("verifyRoborazziDebug")
does not work, the difference is, that the former executes verifyRoborazziDebug
in any project that has such a task, while the latter only refers to that task in the current project. There is no way to express the former in a dependsOn
, but you would need to list out the tasks with the full path.Vampire
04/05/2024, 1:52 PM--parallel
and they are in different projects, or when you use configuration cache with which all tasks can run in parallel, even tasks from the same project as long as there is no dependency or ordering constraint.João Silva
04/05/2024, 1:54 PM./gradlew verifyRoborazziDebug
indeed works and now I understand why.
Thank you for your explanation. I learned something new and I see that I need to approach this in a different way.Vampire
04/05/2024, 1:56 PMdependsOn("verifyRoborazziDebug")
would be like ./gradlew :verifyRoborazziDebug
which would also fail.