Class TestResultsReporter

java.lang.Object
org.testframe.engine.TestResultsReporter

public class TestResultsReporter extends Object
Reports the test results. Any frills in the output, such as text in different colors, is courtesy of the host environment, e.g., if you're running this in an integrated development environment (IDE) like Eclipse or NetBeans. An IDE might provide clickable line numbers (e.g., AssertersTest.java:17) that take you to the line that caused the test failure or error.
Since:
1.0
Author:
Alonso del Arte
  • Constructor Details

    • TestResultsReporter

      public TestResultsReporter(String name, List<TestResult> results)
      Sole constructor.
      Parameters:
      name - The name of the test class, fully qualified. For example, org.example.HelloWorldTest.
      results - The results of the tests. Such as, for example, that one test passed and another failed.
  • Method Details

    • report

      public void report()
      Reports the test results to System.out. The output includes one or more stack traces if any tests failed or caused an error.