Class: Tlb::TestUnit::TestObserver::TestUnitRunData
- Inherits:
-
Object
- Object
- Tlb::TestUnit::TestObserver::TestUnitRunData
show all
- Includes:
- RunData
- Defined in:
- lib/tlb/test_unit/test_observer.rb
Instance Method Summary
collapse
Methods included from RunData
#report_all_suite_data, #suite_started, #update_suite_data, #update_suite_failed
Instance Method Details
#suite_failed(failure) ⇒ Object
8
9
10
|
# File 'lib/tlb/test_unit/test_observer.rb', line 8
def suite_failed(failure)
update_suite_failed(suite_name_for(failure.test_name))
end
|
#suite_name_for(test_name) ⇒ Object
12
13
14
|
# File 'lib/tlb/test_unit/test_observer.rb', line 12
def suite_name_for(test_name)
test_name.scan(/\((.+)\)$/).flatten.first
end
|