mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
New Watcher implementation (for watching for changed files and determining when to rebundle the app.) Unlike the old DependencyWatcher, it uses absolute paths and contains no Meteor-specific knowledge. Also unlike the old DependencyWatcher, it has comprehensive unit tests (scripts/watch-test.sh).
This commit is contained in:
committed by
David Glasser
parent
45217c41f3
commit
24682fd7f4
@@ -40,6 +40,11 @@ unset METEOR_WAREHOUSE_DIR
|
||||
###
|
||||
./bundler-test.sh
|
||||
|
||||
###
|
||||
### Watcher unit tests
|
||||
###
|
||||
./watch-test.sh
|
||||
|
||||
###
|
||||
### Test the Meteor CLI from a checkout. We do this last because it is least likely to fail.
|
||||
###
|
||||
|
||||
14
scripts/watch-test.sh
Executable file
14
scripts/watch-test.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
# stop on any non-zero return value from test_watch.js, and print "FAILED"
|
||||
set -e
|
||||
trap 'echo FAILED' EXIT
|
||||
|
||||
METEOR_DIR=$(pwd)/..
|
||||
|
||||
# run tests
|
||||
./node.sh $METEOR_DIR/tools/tests/test_watch.js
|
||||
|
||||
# cleanup trap, and print "SUCCESS"
|
||||
trap - EXIT
|
||||
echo PASSED
|
||||
Reference in New Issue
Block a user