class MinitestBender::Sections::SuiteStatus

Attributes

io[R]
options[R]
results[R]
total_tests_count[R]

Public Class Methods

new(io, options, results, total_tests_count) click to toggle source
# File lib/minitest-bender/sections/suite_status.rb, line 4
def initialize(io, options, results, total_tests_count)
  @io = io
  @options = options
  @results = results
  @total_tests_count = total_tests_count
end

Public Instance Methods

print() click to toggle source

Private Instance Methods

all_passed_color() click to toggle source
# File lib/minitest-bender/sections/suite_status.rb, line 34
def all_passed_color
  :pass
end
all_run_tests_passed?() click to toggle source
# File lib/minitest-bender/sections/suite_status.rb, line 54
def all_run_tests_passed?
  test_count == passed_count
end
all_tests_passed?() click to toggle source
# File lib/minitest-bender/sections/suite_status.rb, line 38
def all_tests_passed?
  all_tests_were_run? && all_run_tests_passed?
end
all_tests_were_run?() click to toggle source
# File lib/minitest-bender/sections/suite_status.rb, line 42
def all_tests_were_run?
  !restricted_run? && !interrupted?
end
interrupted?() click to toggle source
# File lib/minitest-bender/sections/suite_status.rb, line 50
def interrupted?
  test_count < total_tests_count
end
passed_count() click to toggle source
# File lib/minitest-bender/sections/suite_status.rb, line 62
def passed_count
  @passed_count ||= results.count(&:passed?)
end
print_divider(color) click to toggle source
restricted_run?() click to toggle source
# File lib/minitest-bender/sections/suite_status.rb, line 46
def restricted_run?
  (options.key?(:filter) && options[:filter] != '/./') || options.key?(:exclude)
end
test_count() click to toggle source
# File lib/minitest-bender/sections/suite_status.rb, line 58
def test_count
  results.size
end