public class TestOutcomeLoader extends 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) |
List<TestOutcome> |
loadFrom(File reportDirectory)
Load the test outcomes from a given directory, sorted by Title
|
static TestOutcomeLoader.TestOutcomeLoaderBuilder |
loadTestOutcomes() |
static TestOutcomes |
testOutcomesIn(File reportsDirectory) |
public TestOutcomeLoader()
@Inject public TestOutcomeLoader(EnvironmentVariables environmentVariables)
public TestOutcomeLoader forFormat(OutcomeFormat format)
public List<TestOutcome> loadFrom(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(File reportsDirectory) throws IOException
IOExceptionCopyright © 2022. All rights reserved.