Reputation: 857
My tests are written in mocha and they work fine when I invoke the tests using practical meteor like so:
meteor test --full-app --driver-package practicalmeteor:mocha --port 4000 --settings test_settings.json
But when I try to use dispatch:mocha-phantomjs, only the server side tests run:
meteor test --once --full-app --driver-package dispatch:mocha-phantomjs --settings test_settings.json
Am I just missing something about the separation of meteor client and server?
I am trying to use Travis for CI so I need to switch my tests over to the command line output rather than browser
From my meteor/versions
dispatch:[email protected]
dispatch:[email protected]
practicalmeteor:[email protected]_1
practicalmeteor:[email protected]_2
practicalmeteor:[email protected]_3
practicalmeteor:[email protected]
practicalmeteor:[email protected]_2
I am using the 2.4.5 rc3 of practical meteor because of a bug that appears when dispatch and practical meteor exist in the same package file
Thanks!
Upvotes: 2
Views: 500
Reputation: 857
I ended up using spacejam/practicalmeteor:mocha-console-runner to get my client tests to run in travis. I am posting my .travis.yml for anyone interested.
sudo: true
language: node_js
before_install:
- npm install -g spacejam
- echo $METEOR_SETTINGS > test_settings.json
# assumes that meteor is not installed
# - curl https://install.meteor.com | /bin/sh
# if meteor has been properly cached
- sudo ln -s $HOME/.meteor/meteor /usr/local/bin/meteor
cache:
directories:
- node_modules
- $HOME/.meteor/
before_script:
- meteor npm install
script:
- spacejam test --full-app --once --driver-package practicalmeteor:mocha-console-runner --settings test_settings.json
Upvotes: 2