Class: Test::Unit::Collector::XML
Relationships & Source Files | |
Namespace Children | |
Classes:
| |
Super Chains via Extension / Inclusion / Inheritance | |
Instance Chain:
self,
::Test::Unit::Collector
|
|
Inherits: | Object |
Defined in: | lib/test/unit/collector/xml.rb |
Instance Attribute Summary
::Test::Unit::Collector - Included
Instance Method Summary
::Test::Unit::Collector - Included
Instance Method Details
#collect(xml_log_path)
[ GitHub ]# File 'lib/test/unit/collector/xml.rb', line 21
def collect(xml_log_path) listener = Listener.new File.open(xml_log_path) do |xml_log| parser = REXML::Parsers::StreamParser.new(xml_log, listener) parser.parse end suite = TestSuite.new("tests in #{xml_log_path}") suites = listener.test_suites sort(suites).each {|s| add_suite(suite, s)} suite end