class Mutiny::Tests::TestRun

Attributes

failed_tests[R]
output[R]
passed_tests[R]
runtime[R]
tests[R]

Public Class Methods

new(tests:, passed_tests:, failed_tests:, output:, runtime:) click to toggle source
# File lib/mutiny/tests/test_run.rb, line 6
def initialize(tests:, passed_tests:, failed_tests:, output:, runtime:)
  @tests = tests
  @passed_tests = passed_tests
  @failed_tests = failed_tests
  @output = output
  @runtime = runtime
end

Public Instance Methods

executed_count() click to toggle source
# File lib/mutiny/tests/test_run.rb, line 14
def executed_count
  passed_tests.size + failed_tests.size
end
failed?() click to toggle source
# File lib/mutiny/tests/test_run.rb, line 22
def failed?
  !passed?
end
passed?() click to toggle source
# File lib/mutiny/tests/test_run.rb, line 18
def passed?
  failed_tests.empty?
end