Instance Property
task
Explicit Gradle task name to run (e.g. "testDebugUnitTest"). (Android only)
var task: String?Discussion
When set, this overrides the automatic task selection based on buildVariant and kind. Useful for running aggregate root-level tasks or flavor-specific test tasks like testProdDebugUnitTest.