Tests

Matt Hinchliffe edited this page Aug 2, 2013 · 5 revisions

Robot is covered with the popular Mocha test framework. Tests are written in the BDD style and should include a set of mock data for both success and failure cases.

To run the Robot test suite locally first install the Mocha package globally and run mocha tests/ or install Robot with development dependencies (npm install --dev) and run npm test.

Travis CI

Robot is additionally integrated with Travis CI which will run tests automatically when a change is pushed to the GitHub repository.

Code coverage