Júlio Cesar Bueno
05/13/2024, 2:41 PMtestOptions.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 ?Vampire
05/13/2024, 2:47 PMtestOptions.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úlio Cesar Bueno
05/13/2024, 2:50 PM