- Maven
- Java 8 (Open SDK)
- Clone project: '$ git clone ssh://[email protected]:7999/braz/framework-automation-api.git'
- dev
- uat
- prod
$ mvn clean test -DargLine="-Dkarate.env=dev"
$ mvn clean test -DargLine="-Dkarate.env=dev" "-Dkarate.options=--tags=@inm_test --tags=~@ignore"
- Karate Report:
karate_api/target/surefire-reports/karate-summary.html
- Cucumber:
karate_api/target/cucumber-html-reports
After pointing the image and the tag you would like to use on the container, just type the exact same command you would run if you were executing the tests locally. On the above example, the command was mvn clean test
Parameter | Possible Values | Default Value |
---|---|---|
-Dkarate.env=env |
dev / prod / uat | dev |
-Dkarate.options=--tags=@tag |
any tag | no tag (all tests are executed) |