我有一个用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.
从这里开始:
答案 0 :(得分:3)
正如您在code-climate/ruby-test-reporter CHANGELOG上看到的那样,您需要在测试帮助文件(在我的情况下为spec/spec_helper.rb
)中替换这些行:
require 'codeclimate-test-reporter'
CodeClimate::TestReporter.start
对于这些:
require 'simplecov'
SimpleCov.start
此后,您还必须明确调用codeclimate-test-reporter
。
希望它有所帮助!