THIS IS STILL BEING WORKED ON. DO NOT USE YET.
An npm package to run end-to-end tests on your Meteor app. Use in continuous integration environments, such as Travis CI.
# 1) install $ npm install spacejelly -g # 2) create nightwatch tests in your meteor app # 3) run spacejelly from meteor app $ spacejelly
Table of Contents
For current user:
npm install -g spacejelly
For all users:
# The -H is requiredsudo -H npm install -g spacejelly
See here for node exit codes.
- 0: everything was fine. all tests passed.
- 21: Tests failed.
- 22: Spacejelly failed.
- 23: Spacejelly timed out (increase timeout with
-tflag or in config)
- 24: Meteor failed to start. There is probably an error within your app. Try starting it on its own.
- 25: Mongo failed (maybe
meteor resetmay help).
- 26: Selenium failed.
- 27: Nightwatch failed.
$?in terminal to get the exit code of the previous commmand. You can use this to get the exit code of spacejelly by running it after spacejelly finishes.
lib/Spacejelly.js for up-to-date list.
An example for a Meteor app with Nightwatch tests is provided in
Check out this repository,
$ cd examples/leaderboard and run
$ spacejelly to see it in action.
Get this code, and then do this:
The MIT License (MIT)
Copyright (c) 2014 Dominik Ferber. See LICENSE.