struct Spectator::Formatting::Components::JUnit::TestSuite
Overview
Test suite node of the JUnit XML document. This is the "testsuite" element and all of its children.
Defined in:
spectator/formatting/components/junit/test_suite.crConstructors
-
.new(package : String, name : String, cases : Array(TestCase), time : Time::Span, counts : Counts, hostname : String)
Creates the test suite element.
Class Method Summary
-
.from_examples(file, examples, hostname)
Constructs the test suite element from a collection of tests.
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(package : String, name : String, cases : Array(TestCase), time : Time::Span, counts : Counts, hostname : String)
#
Creates the test suite element.
Class Method Detail
def self.from_examples(file, examples, hostname)
#
Constructs the test suite element from a collection of tests. The examples should all come from the same file.