The folder structure for test automation will be as follows:
tests
├── src
│ └── main
| └── test
| | └──resources
├── .gitignore
├── pom.xml
└── README.md
Docker-compose up and then run mvn command from the root
mvn verify -f tests/pom.xml
Tests can be run with BCEID and BC Services card on dev
Assign value to the "AUTH_PROVIDER" env variable as below
AUTH_PROVIDER:bceid
or
AUTH_PROVIDER:bcsc
Running the tests create an html report here
We support running the tests with the current tags:
@frontend
Using tags will only run the specified tests.
cd tests
mvn verify -Dcucumber.options="--tags '@backend'"
mvn verify -Dcucumber.options="--tags '@frontend'"
Useful cucumber plugins to write feature files
- Cucumber for java from Jetbrains
- Gherkin from Jetbrains