struct Spectator::Formatting::Components::JUnit::Root
Overview
Root node of the JUnit XML document. This is the "testsuites" element and all of its children.
Defined in:
spectator/formatting/components/junit/root.crConstructors
-
.new(runtime : Time::Span, suites : Array(TestSuite), *, total : Int32, failures : Int32, errors : Int32)
Creates the root element.
Class Method Summary
-
.from_report(report)
Constructs the element from a report.
Instance Method Summary
-
#to_xml(xml)
Produces the XML fragment.
Instance methods inherited from class Object
should(matcher : Spectator::Matchers::TypeMatcher(U), message = nil, *, _file = __FILE__, _line = __LINE__) forall Ushould(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should, should_eventually(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should_eventually, should_never(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should_never, should_not(matcher : Spectator::Matchers::TypeMatcher(U), message = nil, *, _file = __FILE__, _line = __LINE__) forall U
should_not(matcher : Spectator::Matchers::NilMatcher, message = nil, *, _file = __FILE__, _line = __LINE__)
should_not(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should_not
Constructor Detail
def self.new(runtime : Time::Span, suites : Array(TestSuite), *, total : Int32, failures : Int32, errors : Int32)
#
Creates the root element.