UI tests #194

Merged
merged 21 commits into from Mar 12, 2014

1 participant

@tristen
Mapbox member

ref #184 this commit adds Mocha and Chai to an app/test directory and tests the style._ template when ?test=true is passed as a param. Currently there are tests for: tab interactions in the editor, documentation and layers.

Still need to:

  • Hook this up into .travis + phantom
@tristen
Mapbox member

Running into issues getting .travis.yml set up with this. Running the command locally from root:

./node_modules/mocha-phantomjs/bin/mocha-phantomjs http://localhost:3000/style?id=tmstyle:///tmp-1371d3fb&test=true

returns this error and then hangs:

[1] 50927
(ui-tests)$ Failed to start mocha: Init timeout

I've tried uninstalling my global package of mocha, tried alternate versions of the client-side mocha.js and chai.js libs to no avail.

@tristen tristen referenced this pull request Mar 12, 2014
Closed

UI tests #184

@tristen tristen merged commit b8810fb into master Mar 12, 2014

1 check passed

Details default The Travis CI build passed
@tristen tristen deleted the ui-tests branch Mar 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment