Class: JunitReportGenerator::TestCase

Inherits:
Element
  • Object
show all
Defined in:
lib/junit_report_generator/elements/test_case.rb

Instance Attribute Summary

Attributes included from Elementary

#attributes

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Element

create

Methods included from Elementary

#assemble_attributes, #method_missing, #update_attributes

Constructor Details

#initialize(name) ⇒ TestCase

Returns a new instance of TestCase.



7
8
9
10
11
# File 'lib/junit_report_generator/elements/test_case.rb', line 7

def initialize(name)
  @name = name
  assemble_attributes(:name)
  register
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class JunitReportGenerator::Elementary

Class Method Details

.xml_tag_nameObject



14
15
16
# File 'lib/junit_report_generator/elements/test_case.rb', line 14

def xml_tag_name
  'testcase'
end