public class TestOutcomeLoader
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TestOutcomeLoader.TestOutcomeLoaderBuilder |
Constructor and Description |
---|
TestOutcomeLoader() |
TestOutcomeLoader(EnvironmentVariables environmentVariables) |
Modifier and Type | Method and Description |
---|---|
TestOutcomeLoader |
forFormat(OutcomeFormat format) |
java.util.List<TestOutcome> |
loadFrom(java.io.File reportDirectory)
Load the test outcomes from a given directory, sorted by Title
|
static TestOutcomeLoader.TestOutcomeLoaderBuilder |
loadTestOutcomes() |
static TestOutcomes |
testOutcomesIn(java.io.File reportsDirectory) |
public TestOutcomeLoader()
@Inject public TestOutcomeLoader(EnvironmentVariables environmentVariables)
public TestOutcomeLoader forFormat(OutcomeFormat format)
public java.util.List<TestOutcome> loadFrom(java.io.File reportDirectory) throws ReportLoadingFailedError
reportDirectory
- An existing directory that contains the test outcomes in XML or JSON format.ReportLoadingFailedError
- Thrown if the specified directory was invalid or loading finished with error.public static TestOutcomeLoader.TestOutcomeLoaderBuilder loadTestOutcomes()
public static TestOutcomes testOutcomesIn(java.io.File reportsDirectory) throws java.io.IOException
java.io.IOException