This repo serves as an example Quke project. Refer to it for examples on how to setup your own projects, and how to use either Capybara or SitePrism in your steps to interact with a web page.
This project is setup to run against version 2.4.2 of Ruby, though as long as you have this or something greater it shouldn't matter. You'll also need the Bundler gem.
The rest of the pre-requisites are the same as those for Quke.
First clone the repository and then drop into your new local repo
git clone https://github.com/DEFRA/quke-example.git && cd quke-example
Next download and install the dependencies
bundle install
You can figure out how the project runs using Quke config files. This project comes with an existing .config.yml
file setup to allow the tests to pass.
You can amend the values in .config.yml
to see how they effect the way Quke runs or alternatively create your own, for example .config.test.yml
. If you stick to the convention of .config.[my name].yml
Git will ignore your file which means you can put whatever you like in them and not risk the content being committed to source control!
You'll then need to start the demo app which the examples run against
bundle exec rake run
You'll want to do this in a separate terminal window as its a long lived task, which means the only way to get back to the command line is with ctrl+c
!
Simply call
bundle exec quke
All being well all the tests should pass. You can now experiment with the examples provided, add your own, and get familiar with how to write your own Cucumber scenarios.
If you have an idea you'd like to contribute please log an issue.
All contributions should be submitted via a pull request.
THIS INFORMATION IS LICENSED UNDER THE CONDITIONS OF THE OPEN GOVERNMENT LICENCE found at:
http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3
The following attribution statement MUST be cited in your products and applications when using this information.
Contains public sector information licensed under the Open Government license v3
The Open Government Licence (OGL) was developed by the Controller of Her Majesty's Stationery Office (HMSO) to enable information providers in the public sector to license the use and re-use of their information under a common open licence.
It is designed to encourage use and re-use of information freely and flexibly, with only a few conditions.