class Mutest::Integration

Abstract base class mutest test framework integrations

Public Class Methods

setup(kernel, name) click to toggle source

Setup integration

Integrations are supposed to define a constant under Mutest::Integration named after the capitalized name parameter.

This avoids having to maintain a mutable registry.

@param kernel [Kernel] @param name [String]

@return [Class<Integration>]

# File lib/mutest/integration.rb, line 20
def self.setup(kernel, name)
  kernel.require("mutest/integration/#{name}")
  const_get(name.capitalize)
end

Public Instance Methods

setup() click to toggle source

Perform integration setup

@return [self]

# File lib/mutest/integration.rb, line 28
def setup
  self
end

Private Instance Methods

expression_parser() click to toggle source

Expression parser

@return [Expression::Parser]

# File lib/mutest/integration.rb, line 49
def expression_parser
  config.expression_parser
end