Exiting Meteor Tinytest after completing all tests

When running meteor test-packages ./from automatic tests (for example, grunt files), this will help if a meteorite comes out after the tests are completed. Is there any way to do this? The command line help does not offer anything like this and this problem suggests that this is not possible.

+4
source share
1 answer

Tinytest is designed for continuous and reactive testing of a set of packages.

For continuous integration scenarios, there is a spacejam tool that calls meteor-testpackages, waits for the tests to complete, then sends a SIGTERM signal to the meteor.

$ npm install -g spacejam
$ spacejam test-packages ./

spacejam: spawning meteor
[[[[[ Tests ]]]]]

=> Started proxy.
=> Started MongoDB.
spacejam: meteor mongodb is ready
I20141129-21:12:34.361(-8)? test-in-console listening
=> Started your app.

=> App running at: http://localhost:4096/
spacejam: meteor is ready
spacejam: spawning phantomjs
phantomjs: Running tests at http://localhost:4096/ using test-in-console
S: tinytest - Moment.is : OK
C: tinytest - Moment.is : OK
passed/expected/failed/total 2 / 0 / 0 / 2
##_meteor_magic##state: done
spacejam: phantomjs exited with code: 0
spacejam: killing meteor
spacejam: meteor killed with signal: SIGTERM
+4
source

All Articles