UNPKG

@mihon/spacejam

Version:

Run your meteor package tinytests and mocha tests from the command line with phantomjs.

96 lines (55 loc) 2.37 kB
Usage ----- spacejam test [options] spacejam test-packages [options] [package...] spacejam package-version spacejam help spacejam test-packages [options] [package...] --------------------------------------------- [package...] can be a list of packages with tinytests or munit tests. If not specified, acts the same as meteor test-packages without arguments. The following options are specific to spacejam: --loglevel <level> spacejam log level. One of trace|debug|info|warn|error. Defaults to info. --root-url <url> The meteor ROOT_URL. Defaults to http://localhost:--port/, and not ROOT_URL, to avoid conflicts with your app's ROOT_URL. --mongo-url <url> The meteor MONGO_URL. Defaults to none, and not MONGO_URL, to avoid conflicts with your app's MONGO_URL. --phantomjs-options "<options...>" The command line options to pass to phantomjs. The default is: "--load-images=no --ssl-protocol=TLSv1". --xunit-out <file> If specified, saves results as xunit output to file. --timeout <milliseconds> Total timeout for all tests. Defaults to no timeout. The following options are meteor options and are passed through to meteor (all are optional): `--driver-package=<driver-package>` For running your practicalmeteor:mocha tests, use practicalmeteor:mocha-console-runner --port <port> The meteor port. Defaults to 4096, and not PORT, to avoid conflicts with your meteor app PORT. --release <release> The release of Meteor to use. --settings <file> Path to a meteor settings file. --production Simulate meteor production mode. Minify and bundle CSS and JS files. --use-system-phantomjs Use the installed version of PhantomJS instead of the one from the PhantomJS NPM package. Running your package tests without a meteor app ----------------------------------------------- From within your package folder, run: spacejam test-packages ./ Exit codes ---------- 0 - All the tests have passed in all packages. 1 - spacejam usage or internal error. 2 - At least one test has failed. 3 - The meteor app exited with an error or is crashing. 4 - The tests have timed out. 6 - An uncaught error happened client side before or during tests. spacejam package-version ------------------------ Prints the package version in the current working directory's package.js For additional usage info, please visit https://github.com/spacejamio/spacejam