I'm trying to run GitLab CI/DI Pipeline with the following script:
# Run all tests, if any fails, interrupt the pipeline(fail it)
debugTests:
interruptible: true
stage: test
script:
- ./gradlew :featuremodule:test --tests com.example.example.MyTestClass
I followed suggestions from here and here, but none of which work. So far, I've used commands below, which produce
Unknown command-line option '--tests'
error in the GitLab console output. I'm running Gradle 6.5
- ./gradlew :featuremodule:test --tests=com.example.example.MyTestClass
- ./gradlew :featuremodule:test --tests com.example.example.MyTestClass
- ./gradlew :featuremodule:test --tests *.MyTestClass
- ./gradlew :featuremodule:test --tests "*MyTestClass.*"