This repo is for End to End tests for Bahmni.
- Clone this repository
- Run
git submodule init - Run
git submodule update
- The details of scenarios covered and planned are given here
- npm install
gauge run specs --env <ENV> -v -p --tags '<TAGS>'eg:gauge run specs --env local -v -p --tags 'clinic & smoke'
--envallows us to choose the environment on which the tests can run. These are the subfolders of the env folder with relevant property files.
-vruns the tests in the verbose mode
-pruns the tests in parallel, the number of streams will be decided by gauge based on system resources. If you want to override it then -n=<Number_of_streams> can be included.
--tagsallows us to choose the tests to run from the test suite. In this command we are running the smoke test forclinic. If we want to run the regression test for clinics, we can use the following commandgauge run specs --env local -v -p --tags 'clinic & regression'
The HTML reports can be found in
./reports/html-reportafter the run.
If you want to run the test against different environment, change URLs, and other values in the properties file under <test checkout Folder>/env/<env> directory. you can also create a new directory and copy the properties from existing environment directory and update as required.