【问题标题】:Teaspoon showing some weird error on CircleCITeaspoon 在 CircleCI 上显示了一些奇怪的错误
【发布时间】:2014-09-17 13:05:10
【问题描述】:

我在我的开发机器上使用茶匙进行一些 javascript 测试(用 CoffeeScript 编写),一切正常:

→ bundle exec rake teaspoon
Starting the Teaspoon server...
Teaspoon running default suite at http://127.0.0.1:58786/teaspoon/default
................

Finished in 0.02500 seconds
16 examples, 0 failures

但在 CircleCI 上,它以以下错误结束。

$ bundle exec rake teaspoon --trace
** Invoke teaspoon (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute teaspoon
Starting the Teaspoon server...
Teaspoon running default suite at http://127.0.0.1:60894/teaspoon/default
Failed to load: http://127.0.0.1:60894/teaspoon/default?reporter=Console bundle exec rake teaspoon --trace returned exit code 1

谁能帮我解决这个错误?谢谢

【问题讨论】:

    标签: ruby-on-rails circleci teaspoon


    【解决方案1】:

    我在 CircleCI 工作。仅从上面的信息中很难弄清楚这里发生了什么。能否请您通过 sayhi@circleci.com 联系我们,我们可以解决问题?

    【讨论】:

    • 我们通过支持解决了这个问题。错误是由我们的 rails 应用程序中的测试环境的config.force_ssl=true 选项引起的。在为茶匙测试设置config.force_ssl=false 后,一切正常。谢谢
    • 我有同样的问题,我没有设法解决它,既没有 force_ssl 选项设置为 false,也没有下面提出的解决方案。我去追查这个问题是什么时候发生的,如果我提交的东西影响了它,但它突然冒出来了。这是最新的失败构建,您可以在其中看到错误 -> circleci.com/gh/moonleerecords/moonlee-website/158(检查选项卡“bundle exec rake teaspoon”)。
    【解决方案2】:

    我的问题是我必须将以下内容添加到config/initializers/assets.rb

    Rails.application.config.assets.precompile += %w( teaspoon-jasmine.js jasmine/1.3.1.js teaspoon-teaspoon.js teaspoon.css )
    

    ..然后重启服务器。

    这是因为我使用的是 jasmine,它需要预编译才能工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-05
      • 2012-02-20
      • 2011-04-03
      • 2012-11-23
      相关资源
      最近更新 更多