Class TestOutcomeLoader

java.lang.Object
net.thucydides.core.reports.TestOutcomeLoader

public class TestOutcomeLoader
extends java.lang.Object
Loads test outcomes from a given directory, and reports on their contents. This class is used for aggregate reporting.
  • Constructor Details

    • TestOutcomeLoader

      public TestOutcomeLoader()
    • TestOutcomeLoader

      @Inject public TestOutcomeLoader​(EnvironmentVariables environmentVariables)
  • Method Details

    • forFormat

      public TestOutcomeLoader forFormat​(OutcomeFormat format)
    • loadFrom

      public java.util.List<TestOutcome> loadFrom​(java.io.File reportDirectory) throws ReportLoadingFailedError
      Load the test outcomes from a given directory, sorted by Title
      Parameters:
      reportDirectory - An existing directory that contains the test outcomes in XML or JSON format.
      Returns:
      The full list of test outcomes.
      Throws:
      ReportLoadingFailedError - Thrown if the specified directory was invalid or loading finished with error.
    • loadTestOutcomes

      public static TestOutcomeLoader.TestOutcomeLoaderBuilder loadTestOutcomes()
    • testOutcomesIn

      public static TestOutcomes testOutcomesIn​(java.io.File reportsDirectory) throws java.io.IOException
      Throws:
      java.io.IOException