Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
TravisCI Ruby项目不与rspec一起工作_Ruby_Rspec_Travis Ci - Fatal编程技术网

TravisCI Ruby项目不与rspec一起工作

TravisCI Ruby项目不与rspec一起工作,ruby,rspec,travis-ci,Ruby,Rspec,Travis Ci,我有一个用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

我有一个用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.
从这里开始:

正如您在上看到的,您需要替换测试助手文件中的这些行(在我的示例中是
spec/spec\u helper.rb
):

对于这些人:

require 'simplecov'
SimpleCov.start
此后,您还必须显式调用
codeclimate test reporter

希望有帮助

正如您在上看到的,您需要替换测试助手文件中的这些行(在我的示例中是
spec/spec\u helper.rb
):

对于这些人:

require 'simplecov'
SimpleCov.start
此后,您还必须显式调用
codeclimate test reporter

希望有帮助