Cucumber/Watir features for symbiod project
- run rspec
- build app image
- run docker-compose at features
To run natively on dev machine:
-
Clone repository and go to
symbiod-features -
Create folder artifacts
mkdir artifacts -
Configure the connection to the database
features/support/database.yml.samplecp features/support/database.yml.sample features/support/database.yml -
bundle -
Environment variables
-
Go to
symbiodproject dir and runRAILS_ENV=features rake assets:precompileRAILS_ENV=features rails server -
Go to
symbiod-featuresand runcucumber
To run features in headless mode(without real browser window) use:
HEADLESS=true cucumber
If you need to debug some feature, use DEBUG=true cucumber, it will run PRY session on the first failure.
- Go to
symbiodproject dir and runbin/build - Go to
symbiodand runbin/run
Keep in mind that dockerized run may take longer, so it makes sense to use it for final run, before pushing branch.