Closed Aboisier closed 5 years ago
Print a summary at the end of a test report.
Implemented a RootTestSuite which extends the TestSuite class. The LoggerTestReporterDecorator checks if the current test suite is a RootTestSuite. If so, it prints the summary.
RootTestSuite
TestSuite
LoggerTestReporterDecorator
Example
I refactored to use the visitor pattern instead of a type check.
Purpose
Print a summary at the end of a test report.
Approach
Implemented a
RootTestSuite
which extends theTestSuite
class. TheLoggerTestReporterDecorator
checks if the current test suite is aRootTestSuite
. If so, it prints the summary.Example