具有Rails 4和Rspec 3的突变体-RSpec

时间:2014-11-03 23:51:45

标签: ruby-on-rails-4 rspec3 mutation-testing

似乎没有运行我的规范(specs / model中的日志语句不显示在日志中)。

我有一个相当简单的用户模型,带有标准的描述块(描述用户......):

$ 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%
$

0 个答案:

没有答案