Skip to content

Contributing and Testing

Gurpartap edited this page Mar 14, 2013 · 3 revisions

Contributing

Please fork the Cognizant repository and contribute back using pull requests.

Any contributions, large or small, major features, bug fixes, documentation, unit/integration tests are welcomed and appreciated but will be thoroughly reviewed and discussed.

Testing

Cognizant aims to provide extensive integration and functional tests for easier development and maintenance workflow.

Currently only integration tests are written for Cognizant using Cucumber and Aruba.

Travis CI Build Status

Sometimes getting the tests running can be too much work especially if you don't have much Ruby experience. It's okay, be lazy and let our build bot, Travis-CI, run the tests for you. Just open a pull request and the bot will start cranking away.

Tests are automatically run upon every repo commit as well. View the results on Cognizant's Travis-CI page.

Manually testing Cognizant

Clone the repo:

$ git clone git://github.com/Gurpartap/cognizant.git && cd cognizant

Install the development dependencies:

$ bundle install --path .bundle

And run the tests with:

$ bundle exec cucumber

Or

$ bundle exec rake features