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.sample
cp features/support/database.yml.sample features/support/database.yml
-
bundle
-
Environment variables
-
Go to
symbiod
project dir and runRAILS_ENV=features rake assets:precompile
RAILS_ENV=features rails server
-
Go to
symbiod-features
and 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
symbiod
project dir and runbin/build
- Go to
symbiod
and runbin/run
Keep in mind that dockerized run may take longer, so it makes sense to use it for final run, before pushing branch.