My tests are run via gradle like
./gradlew -Denv=remote clean test --tests '*com.examle.Test*'
and before tests executing I need to get argument that specified tests to run (*com.examle.Test*).
Is it possible to extract this argument in build.gradle file?
I assume something like
tasks.withType(Test) {
def testsToExecute = ??? //need to get "*com.examle.Test*"
}
Thank you in advance.