hey, I would like to set some `testOptions.unitTes...
# community-support
j
hey, I would like to set some
testOptions.unitTests
when running the task
verifyAndRecordRoborazziDebug
, right now I am checking if I am running it with
gradle.startParameter.taskNames.contains("verifyAndRecordRoborazziDebug")
, but it does not feel right... I thought that maybe it would be better to create a new task
MyVerifyAndRecordRoborazziDebug
that could configure the testOptions before running, but I don't know if it is possible or even the right thing to do.... any advice ?
v
Hard to say for me as I neither know what
testOptions.unitTests
is nor what Roborazzi is. But generally said, checking for the
taskNames
is flaky, as you can use abbreviated task names or have it as dependency of another task. And changing task configuration at execution time is an even worse idea.
j
I imagined... thanks