Class: Minitest::TapY
- Inherits:
-
Minitap
- Object
- StatisticsReporter
- Minitap
- Minitest::TapY
show all
- Defined in:
- lib/minitap/minitest5.rb
Overview
Constant Summary
Constants inherited
from Minitap
Minitap::IGNORE_CALLERS, Minitap::REVISION
Instance Attribute Summary
Attributes inherited from Minitap
#case_start_time, #suite_start_time, #test_cases, #test_count, #test_start_time
Instance Method Summary
collapse
Methods inherited from Minitap
#after_case, #after_suite, #after_test, #before_case, #before_suite, #before_test, #capture_io, #clean_message, #code_snippet, #count_tests!, #filter_backtrace, #filtered_tests, #location, #p, #parse_source_location, #print, #puts, #record, #record_stdcom, #report, #source, #start, #tapout_after_case, #tapout_after_test, #tapout_before_test, #test_err, #test_fail, #test_pass, #test_skip, #uncapture_io
Constructor Details
#initialize(options = {}) ⇒ TapY
Returns a new instance of TapY.
816
817
818
819
|
# File 'lib/minitap/minitest5.rb', line 816
def initialize(options={})
require 'yaml' unless respond_to?(:to_yaml)
super(options)
end
|
Instance Method Details
#tapout_after_suite ⇒ Object
839
840
841
842
|
# File 'lib/minitap/minitest5.rb', line 839
def tapout_after_suite()
wp super().to_yaml
wp "..."
end
|
#tapout_before_case(test_case) ⇒ Object
824
825
826
|
# File 'lib/minitap/minitest5.rb', line 824
def tapout_before_case(test_case)
wp super(test_case).to_yaml
end
|
#tapout_before_suite ⇒ Object
821
822
823
|
# File 'lib/minitap/minitest5.rb', line 821
def tapout_before_suite()
wp super().to_yaml
end
|
#tapout_test_error(result) ⇒ Object
836
837
838
|
# File 'lib/minitap/minitest5.rb', line 836
def tapout_test_error(result)
wp super(result).to_yaml
end
|
#tapout_test_failure(result) ⇒ Object
833
834
835
|
# File 'lib/minitap/minitest5.rb', line 833
def tapout_test_failure(result)
wp super(result).to_yaml
end
|
#tapout_test_pass(result) ⇒ Object
827
828
829
|
# File 'lib/minitap/minitest5.rb', line 827
def tapout_test_pass(result)
wp super(result).to_yaml
end
|
#tapout_test_skip(result) ⇒ Object
830
831
832
|
# File 'lib/minitap/minitest5.rb', line 830
def tapout_test_skip(result)
wp super(result).to_yaml
end
|
#wp(str) ⇒ Object
844
845
846
|
# File 'lib/minitap/minitest5.rb', line 844
def wp(str)
io.puts(str)
end
|