This is a sample project for Preceptor, Hodman, and Kobold, suggesting a way of using all of these in your own project.
This project mostly consists of the TodoMVC application realized in Ember-CLI.
However, the Preceptor tests (with all related tools) can be found in the tests/ui
folder.
You will need the following things properly installed on your computer to run this project.
For Bower:
npm install -g bower
For Ember-CLI:
npm install -g ember-cli
git clone <repository-url>
this repository- change into the new directory
npm install
bower install
ember server
- Visit the app at http://localhost:4200.
npm test
This will run the tests in PhantomJS on your local machine. Make sure that the Ember server is running in the background.
Additionally, you can also run the tests in other browsers on your local machine:
npm run firefox
- You need Firefox installed on your systemnpm run chrome
- You need Chrome installed on your systemnpm run phantomsjs
- Same asnpm test
Note: Chrome has a known bug for having trouble capturing screenshots.
- A JUnit XML file is created in
tests/ui/test-results.xml
- Build screenshots are in
tests/ui/regression/build
- Visual regression comparisons are in
tests/ui/regression/highlight
##Example