Ruby on rails 4 带有Rails 4和rspec 3的突变rspec
似乎它没有运行我的规范(规范/模型中的日志语句不会显示在日志中) 我有一个相当简单的用户模型,带有标准描述块(描述用户…):Ruby on rails 4 带有Rails 4和rspec 3的突变rspec,ruby-on-rails-4,rspec3,mutation-testing,Ruby On Rails 4,Rspec3,Mutation Testing,似乎它没有运行我的规范(规范/模型中的日志语句不会显示在日志中) 我有一个相当简单的用户模型,带有标准描述块(描述用户…): $RAILS\u ENV=testbundle exec-r./config/environment——使用rspec用户 模块#name from:XPath::HTML未返回字符串或nil。修复您的库以支持正常的ruby语义! 模块#name from:XPath未返回字符串或nil。修复您的库以支持正常的ruby语义! #没有有效的源位置,无法发出主题 突变配置:
$RAILS\u ENV=testbundle exec-r./config/environment——使用rspec用户
模块#name from:XPath::HTML未返回字符串或nil。修复您的库以支持正常的ruby语义!
模块#name from:XPath未返回字符串或nil。修复您的库以支持正常的ruby语义!
#没有有效的源位置,无法发出主题
突变配置:
匹配器:#
集成:rspec
预期覆盖率:100.00%
进程:8
包括:[]
需要:[“/config/environment”]
突变配置:
匹配器:#
集成:rspec
预期覆盖率:100.00%
进程:8
包括:[]
需要:[“/config/environment”]
可用科目:0
主题:0
突变:0
死亡人数:0
活着的:0
运行时间:1.05秒
终止时间:0.00s
间接费用:Inf%
覆盖率:0.00%
预期:100.00%
$
您的用户类是否在def
或def self…
中包含任何代码?
$ RAILS_ENV=test bundle exec mutant -r ./config/environment --use rspec User
Module#name from: XPath::HTML did not return a String or nil. Fix your lib to support normal ruby semantics!
Module#name from: XPath did not return a String or nil. Fix your lib to support normal ruby semantics!
#<Method: User (call 'User.connection' to establish a connection).page> does not have valid source location unable to emit subject
Mutant configuration:
Matcher: #<Mutant::Matcher::Config match_expressions=[<Mutant::Expression: User>] subject_ignores=[] subject_selects=[]>
Integration: rspec
Expect Coverage: 100.00%
Processes: 8
Includes: []
Requires: ["./config/environment"]
Mutant configuration:
Matcher: #<Mutant::Matcher::Config match_expressions=[<Mutant::Expression: User>] subject_ignores=[] subject_selects=[]>
Integration: rspec
Expect Coverage: 100.00%
Processes: 8
Includes: []
Requires: ["./config/environment"]
Available Subjects: 0
Subjects: 0
Mutations: 0
Kills: 0
Alive: 0
Runtime: 1.05s
Killtime: 0.00s
Overhead: Inf%
Coverage: 0.00%
Expected: 100.00%
$