Package net.thucydides.core.reports

Examples of net.thucydides.core.reports.ResultChecker


     */
    @Parameter(property = "outputDirectory", defaultValue = "${project.build.directory}/site/thucydides", required=true)
    public File outputDirectory;

    protected ResultChecker getResultChecker() {
        return new ResultChecker(outputDirectory);
    }
View Full Code Here


    }

    @Test(expected = TestOutcomesError.class)
    public void should_throw_an_exception_when_asked_if_errors_are_present() {
        File reports = directoryInClasspathCalled("/test-outcomes/containing-errors");
        ResultChecker resultChecker = new ResultChecker(reports);
        resultChecker.checkTestResults();
    }
View Full Code Here

    }

    @Test(expected = TestOutcomesFailures.class)
    public void should_throw_an_exception_when_asked_if_failures_are_present() {
        File reports = directoryInClasspathCalled("/test-outcomes/containing-failure");
        ResultChecker resultChecker = new ResultChecker(reports);
        resultChecker.checkTestResults();
    }
View Full Code Here

    }

    @Test
    public void should_throw_no_exception_for_successful_tests() {
        File reports = directoryInClasspathCalled("/test-outcomes/all-successful");
        ResultChecker resultChecker = new ResultChecker(reports);
        resultChecker.checkTestResults();
    }
View Full Code Here

    }

    @Test
    public void should_check_json_results() {
        File reports = directoryInClasspathCalled("/test-outcomes/full-json");
        ResultChecker resultChecker = new ResultChecker(reports);
        resultChecker.checkTestResults();
    }
View Full Code Here

TOP

Related Classes of net.thucydides.core.reports.ResultChecker

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.