Class: Mutant::Integration::Minitest::TestCase
- Inherits:
-
Object
- Object
- Mutant::Integration::Minitest::TestCase
- Includes:
- Adamantium
- Defined in:
- lib/mutant/integration/minitest.rb
Overview
Compose a runnable with test method
This looks actually like a missing object on minitest implementation.
Instance Method Summary collapse
-
#call(reporter) ⇒ Boolean
Run test case.
-
#expressions(parser) ⇒ Array<Expression>
Parse expressions.
-
#identification ⇒ String
Identification string.
Instance Method Details
#call(reporter) ⇒ Boolean
Run test case
47 48 49 50 |
# File 'lib/mutant/integration/minitest.rb', line 47 def call(reporter) ::Minitest::Runnable.run_one_method(klass, test_method, reporter) reporter.passed? end |
#expressions(parser) ⇒ Array<Expression>
Parse expressions
57 58 59 60 61 |
# File 'lib/mutant/integration/minitest.rb', line 57 def expressions(parser) klass.resolve_cover_expressions.to_a.map do |value| parser.call((value)).from_right end end |
#identification ⇒ String
Identification string
37 38 39 |
# File 'lib/mutant/integration/minitest.rb', line 37 def identification IDENTIFICATION_FORMAT % [klass, test_method] end |