Class: JunitModel::TestGroup
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- JunitModel::TestGroup
- Defined in:
- lib/junit_model/models.rb
Overview
A TestGroup is the top level object in a Junit tree.
Instance Method Summary collapse
- #failures_count ⇒ Object (also: #failure_count)
- #passed? ⇒ Boolean (also: #passed)
- #test_count ⇒ Object
- #to_xml ⇒ Object
Instance Method Details
#failures_count ⇒ Object Also known as: failure_count
10 11 12 |
# File 'lib/junit_model/models.rb', line 10 def failures_count failures.to_i end |
#passed? ⇒ Boolean Also known as: passed
14 15 16 |
# File 'lib/junit_model/models.rb', line 14 def passed? failures_count == 0 end |
#test_count ⇒ Object
6 7 8 |
# File 'lib/junit_model/models.rb', line 6 def test_count tests.to_i end |
#to_xml ⇒ Object
18 19 20 |
# File 'lib/junit_model/models.rb', line 18 def to_xml XMLBuilder.xml_for_result(self) end |