Class: Test::Unit::UI::JUnitXml::JUnitTestSuite
- Inherits:
- 
      Object
      
        - Object
- Test::Unit::UI::JUnitXml::JUnitTestSuite
 
- Defined in:
- lib/test/unit/ui/junitxml/testrunner.rb
Instance Attribute Summary collapse
- 
  
    
      #name  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute name. 
- 
  
    
      #test_cases  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute test_cases. 
- 
  
    
      #time  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute time. 
Instance Method Summary collapse
- #<<(test_case) ⇒ Object
- #errors ⇒ Object
- #failures ⇒ Object
- 
  
    
      #initialize(name)  ⇒ JUnitTestSuite 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of JUnitTestSuite. 
Constructor Details
#initialize(name) ⇒ JUnitTestSuite
Returns a new instance of JUnitTestSuite.
| 97 98 99 100 101 | # File 'lib/test/unit/ui/junitxml/testrunner.rb', line 97 def initialize(name) @name = name @time = 0 @test_cases = [] end | 
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
| 94 95 96 | # File 'lib/test/unit/ui/junitxml/testrunner.rb', line 94 def name @name end | 
#test_cases ⇒ Object (readonly)
Returns the value of attribute test_cases.
| 94 95 96 | # File 'lib/test/unit/ui/junitxml/testrunner.rb', line 94 def test_cases @test_cases end | 
#time ⇒ Object
Returns the value of attribute time.
| 95 96 97 | # File 'lib/test/unit/ui/junitxml/testrunner.rb', line 95 def time @time end | 
Instance Method Details
#<<(test_case) ⇒ Object
| 103 104 105 | # File 'lib/test/unit/ui/junitxml/testrunner.rb', line 103 def <<(test_case) @test_cases << test_case end | 
#errors ⇒ Object
| 111 112 113 | # File 'lib/test/unit/ui/junitxml/testrunner.rb', line 111 def errors @test_cases.map(&:error).compact end | 
#failures ⇒ Object
| 107 108 109 | # File 'lib/test/unit/ui/junitxml/testrunner.rb', line 107 def failures @test_cases.map(&:failure).compact end |