Class: Mutest::Integration Private

Inherits:
Object
  • Object
show all
Includes:
AbstractType, Adamantium::Flat
Defined in:
lib/mutest/integration.rb,
lib/mutest/integration/null.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Abstract base class mutest test framework integrations

Direct Known Subclasses

Null

Defined Under Namespace

Classes: Null

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.setup(kernel, name) ⇒ Class<Integration>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

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.

Parameters:

  • kernel (Kernel)
  • name (String)

Returns:



18
19
20
21
# File 'lib/mutest/integration.rb', line 18

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

Instance Method Details

#all_testsEnumerable<Test>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Available tests for integration

Returns:

  • (Enumerable<Test>)


40
# File 'lib/mutest/integration.rb', line 40

abstract_method :all_tests

#callResult::Test

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Run a collection of tests

Parameters:

  • tests (Enumerable<Test>)

Returns:



35
# File 'lib/mutest/integration.rb', line 35

abstract_method :call

#setupself

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Perform integration setup

Returns:

  • (self)


26
27
28
# File 'lib/mutest/integration.rb', line 26

def setup
  self
end