Class: Tryouts::Testrun
- Inherits:
-
Data
- Object
- Data
- Tryouts::Testrun
- Defined in:
- lib/tryouts/test_case.rb
Overview
test_cases is a single ordered array of TestCase | OrphanBlock — the interleaving order is load-bearing for shared-context local-variable state.
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#setup ⇒ Object
readonly
Returns the value of attribute setup.
-
#source_file ⇒ Object
readonly
Returns the value of attribute source_file.
-
#teardown ⇒ Object
readonly
Returns the value of attribute teardown.
-
#test_cases ⇒ Object
readonly
Returns the value of attribute test_cases.
-
#warnings ⇒ Object
readonly
Returns the value of attribute warnings.
Instance Method Summary collapse
Instance Attribute Details
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
118 119 120 |
# File 'lib/tryouts/test_case.rb', line 118 def @metadata end |
#setup ⇒ Object (readonly)
Returns the value of attribute setup
118 119 120 |
# File 'lib/tryouts/test_case.rb', line 118 def setup @setup end |
#source_file ⇒ Object (readonly)
Returns the value of attribute source_file
118 119 120 |
# File 'lib/tryouts/test_case.rb', line 118 def source_file @source_file end |
#teardown ⇒ Object (readonly)
Returns the value of attribute teardown
118 119 120 |
# File 'lib/tryouts/test_case.rb', line 118 def teardown @teardown end |
#test_cases ⇒ Object (readonly)
Returns the value of attribute test_cases
118 119 120 |
# File 'lib/tryouts/test_case.rb', line 118 def test_cases @test_cases end |
#warnings ⇒ Object (readonly)
Returns the value of attribute warnings
118 119 120 |
# File 'lib/tryouts/test_case.rb', line 118 def warnings @warnings end |
Instance Method Details
#empty? ⇒ Boolean
123 124 125 |
# File 'lib/tryouts/test_case.rb', line 123 def empty? total_tests.zero? end |
#total_tests ⇒ Object
119 120 121 |
# File 'lib/tryouts/test_case.rb', line 119 def total_tests test_cases.count { |tc| tc.is_a?(TestCase) } end |