【问题标题】:Meteor: how to test packages with jasmine tests on travis-ci?Meteor:如何在 travis-ci 上使用 jasmine 测试来测试包?
【发布时间】:2015-08-20 14:56:36
【问题描述】:

我有一个流星包,它包含一些使用速度和茉莉花编写的测试。我尝试按照https://github.com/arunoda/travis-ci-meteor-packages 中的描述添加 Travis CI 支持。但是,从日志文件看来,实际上没有运行任何测试。

node start_test.js
I20150818-06:28:58.169(0)? test-in-console listening
starting testing...
Running Meteor tests in PhantomJS... http://localhost:10015/
Running Jasmine tests
passed/expected/failed/total 0 / 0 / 0 / 0
##_meteor_magic##state: done
The command "make test" exited with 0.
Done. Your build exited with 0.

日志文件提到了 Jasmine 测试,因此它可以识别测试。但它报告零测试

passed/expected/failed/total 0 / 0 / 0 / 0

https://github.com/arunoda/travis-ci-meteor-packages 中的说明是否仅适用于小测试?

我使用的 .travis.yml 文件是: https://github.com/sf-wind/meteor-template-elements/blob/master/.travis.yml

我错过了什么步骤?

谢谢。

【问题讨论】:

    标签: meteor travis-ci meteor-velocity


    【解决方案1】:

    好的。我最终使用velocity cli 来执行测试。我建立了一个 github 存储库以包含使用的脚本:https://github.com/sf-wind/meteor-velocity-travis-ci

    希望对您有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-07-27
      • 1970-01-01
      • 2015-12-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-07-28
      相关资源
      最近更新 更多