试图添加突变测试

时间:2016-12-10 19:26:31

标签: ruby mutation-testing

我正在尝试使用

将变异测试添加到rails项目中
gem 'mutant-rspec'

在Gemfile中,似乎使用bundler

正确安装它
Resolving dependencies...
...
Using mutant 0.8.12
Using actionpack 5.0.0.1
Using mutant-rspec 0.8.11
...
Bundle complete! 26 Gemfile dependencies, 112 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.

但是在试图对突变体做任何事情后,我总是在尝试启动突变体时得到这个错误:

ytg@yui:~/projects/rails_hello_world> mutant
warning: parser/current is loading parser/ruby23, which recognizes
warning: 2.3.3-compliant syntax, but you are running 2.3.1.
warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
/usr/lib64/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `require': cannot load such file -- mutant/mutator/node (LoadError)
    from /usr/lib64/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `rescue in require'
    from /usr/lib64/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:40:in `require'
    from /usr/lib64/ruby/gems/2.3.0/gems/mutant-0.8.12/lib/mutant.rb:91:in `<top (required)>'
    from /usr/lib64/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/lib64/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/lib64/ruby/gems/2.3.0/gems/mutant-0.8.12/bin/mutant:8:in `<top (required)>'
    from /usr/bin/mutant:23:in `load'
    from /usr/bin/mutant:23:in `<main>'

我认为我的装置缺少一些东西,但我无法弄清楚:缺少什么?

0 个答案:

没有答案