Package net.thucydides.core.reports.xml

Examples of net.thucydides.core.reports.xml.XMLTestOutcomeReporter


        return TestOutcomes.of(loader.loadFrom(reportsDirectory));
    }

    public AcceptanceTestLoader getOutcomeReporter() {
        switch (formatConfiguration.getPreferredFormat()) {
            case XML: return new XMLTestOutcomeReporter();
            case JSON: return new JSONTestOutcomeReporter();
            default: throw new IllegalArgumentException("Unsupported report format: " + formatConfiguration.getPreferredFormat());
        }
    }
View Full Code Here


    private boolean shouldGenerate(OutcomeFormat format) {
        return formatConfiguration.getFormats().contains(format);
    }

    private AcceptanceTestReporter getXMLReporter() {
        XMLTestOutcomeReporter reporter = new XMLTestOutcomeReporter();
        reporter.setOutputDirectory(getOutputDirectory());
        return reporter;
    }
View Full Code Here

    @Before
    public void setupTestReporter() throws IOException {
       
        MockitoAnnotations.initMocks(this);
       
        reporter = new XMLTestOutcomeReporter();
        outputDirectory = temporaryDirectory.newFolder("temp");
        reporter.setOutputDirectory(outputDirectory);
    }
View Full Code Here

    private File outputDirectory;

    @Before
    public void setupTestReporter() throws IOException {
        outcomeReporter = new XMLTestOutcomeReporter();

        outputDirectory = temporaryDirectory.newFolder();

        outcomeReporter.setOutputDirectory(outputDirectory);
    }
View Full Code Here

TOP

Related Classes of net.thucydides.core.reports.xml.XMLTestOutcomeReporter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.