I have a series of client and server mocha tests that work when I run the command:
meteor test --full-app --driver-package practicalmeteor:mocha --port 4000 --settings test_settings.json
I am currently trying to set these up on Travis so I am running the test via the command
meteor test --once --full-app --driver-package dispatch:mocha-phantomjs --settings test_settings.json
All of my server tests run but then it says, “Running client tests, 0 tests run.”
Is it something I am misunderstanding about client and server stuff? I am new to Meteor and maybe this is a misunderstanding on my part. Thanks!
My solution, in case anyone gets here from a google search, was to use spacejam and the practicalmeteor:mocha-console-runner package.
Here is my .travis.yml file.
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
`