Class: Mutant::Result::TestEnv Private

Inherits:
Object
  • Object
show all
Includes:
Mutant::Result
Defined in:
lib/mutant/result.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.

TestEnv result object

Instance Method Summary collapse

Methods included from Mutant::Result

included

Instance Method Details

#amount_test_resultsObject

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.



136
# File 'lib/mutant/result.rb', line 136

def amount_test_results = test_results.length

#amount_testsObject

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.



134
# File 'lib/mutant/result.rb', line 134

def amount_tests = env.integration.all_tests.length

#amount_tests_failedObject

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.



138
# File 'lib/mutant/result.rb', line 138

def amount_tests_failed = failed_test_results.length

#amount_tests_successObject

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.



140
# File 'lib/mutant/result.rb', line 140

def amount_tests_success = test_results.count(&:passed)

#failed_test_resultsArray<Result::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.

Failed subject results

Returns:



125
# File 'lib/mutant/result.rb', line 125

def failed_test_results = test_results.reject(&:success?)

#stop?Boolean

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.

Returns:

  • (Boolean)


128
129
130
# File 'lib/mutant/result.rb', line 128

def stop?
  env.config.fail_fast && !test_results.all?(&:success?)
end

#success?Boolean

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.

Test if run is successful

Returns:

  • (Boolean)


117
118
119
# File 'lib/mutant/result.rb', line 117

def success?
  amount_tests_failed.equal?(0)
end

#testtimeObject

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.



132
# File 'lib/mutant/result.rb', line 132

def testtime = test_results.map(&:runtime).sum(0.0)