mbj / mutant

Automated code reviews via mutation testing - semantic code coverage.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mutating a module included method breaks require

HashNotAdam opened this issue · comments

I have a module included in a class. The module includes both class and instance method and is formatted like:

def self.included(klass)
  klass.extend(ClassMethods)
end

module ClassMethods
  # class methods here
end

# instance methods here

While mutant is correctly mutating the included method, changes there cause a crash in spec_helper since requiring the class will fail.

@HashNotAdam I'm not 100% sure this falls within mutants domain. Does it crash mutant itself? Can I get a stacktrace?