gpt4 book ai didi

ruby - TravisCI Ruby 项目不适用于 rspec

转载 作者:太空宇宙 更新时间:2023-11-03 17:44:59 27 4
gpt4 key购买 nike

我有一个用 Ruby 编写的 Logstash 插件,它在 TravisCI 上开始失败,但它在本地工作。知道这意味着什么吗?

$ bundle exec rspec spec

The signal EXIT is in use by the JVM and will not work correctly on this platform

Coverage may be inaccurate; set the "--debug" command line option, or do JRUBY_OPTS="--debug" or set the "debug.fullTrace=true" option in your .jrubyrc

W, [2016-12-02T14:12:20.127000 #5894] WARN -- : This usage of the Code Climate Test Reporter is now deprecated. Since version

1.0, we now require you to run `SimpleCov` in your test/spec helper, and then

run the provided `codeclimate-test-reporter` binary separately to report your

results to Code Climate.

More information here: https://github.com/codeclimate/ruby-test-reporter/blob/master/README.md

The command "bundle exec rspec spec" exited with 1.

从这里开始:

https://travis-ci.org/mikebski/logstash-filter-datepart

最佳答案

正如您在 code-climate/ruby-test-reporter CHANGELOG 上看到的那样,您需要替换测试帮助程序文件中的这些行(在我的例子中是 spec/spec_helper.rb):

require 'codeclimate-test-reporter'
CodeClimate::TestReporter.start

对于这些:

require 'simplecov'
SimpleCov.start

从今以后,您还必须显式调用 codeclimate-test-reporter

希望对您有所帮助!

关于ruby - TravisCI Ruby 项目不适用于 rspec,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40934908/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com