Meteor测试-客户端测试未在分派下运行:mocha phantomjs

Meteor测试-客户端测试未在分派下运行:mocha phantomjs,meteor,mocha.js,Meteor,Mocha.js,我的测试是用mocha编写的,当我使用实用meteor调用测试时,它们运行良好,如: meteor test --full-app --driver-package practicalmeteor:mocha --port 4000 --settings test_settings.json 但当我尝试使用dispatch:mocha phantomjs时,只有服务器端测试运行: meteor test --once --full-app --driver-package dispatch:m

我的测试是用mocha编写的,当我使用实用meteor调用测试时,它们运行良好,如:

meteor test --full-app --driver-package practicalmeteor:mocha --port 4000 --settings test_settings.json
但当我尝试使用dispatch:mocha phantomjs时,只有服务器端测试运行:

meteor test --once --full-app --driver-package dispatch:mocha-phantomjs --settings test_settings.json
我是不是错过了流星客户端和服务器分离的一些东西

我正在尝试使用Travis for CI,因此我需要将测试切换到命令行输出,而不是浏览器

从我的流星/版本

dispatch:mocha-phantomjs@0.1.6
dispatch:phantomjs-tests@0.0.5
practicalmeteor:chai@2.1.0_1
practicalmeteor:loglevel@1.2.0_2
practicalmeteor:mocha@2.4.5_3
practicalmeteor:mocha-core@1.0.1
practicalmeteor:sinon@1.14.1_2
我使用的是practical meteor的2.4.5 rc3,因为当dispatch和practical meteor存在于同一个包文件中时,会出现一个bug


谢谢

我最终使用spacejam/practicalmeter:mocha控制台运行程序让我的客户端测试在travis中运行。我正在为任何感兴趣的人发布我的.travis.yml

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

你把测试文件放在哪里