Package org.gradle.api.internal.tasks.testing

Examples of org.gradle.api.internal.tasks.testing.TestDescriptorInternal


        outputs.get(event.getDestination()).append(event.getMessage());
    }

    @Override
    protected void started(TestState state) {
        TestDescriptorInternal test = state.test;
        if (test.getName().equals(test.getClassName())) {
            testSuiteReport = documentBuilder.newDocument();
            rootElement = testSuiteReport.createElement(XMLConstants.TESTSUITE);
            testSuiteReport.appendChild(rootElement);
            // Add an empty properties element for compatibility
            rootElement.appendChild(testSuiteReport.createElement(XMLConstants.PROPERTIES));
View Full Code Here


        this.listener = listener;
    }

    @Override
    protected void started(TestState state) {
        TestDescriptorInternal test = state.test;
        if (test.isComposite()) {
            listener.beforeSuite(test);
        } else {
            listener.beforeTest(test);
        }
    }
View Full Code Here

    @Override
    protected void completed(TestState state) {
        TestResult result = new DefaultTestResult(state.resultType, state.failure, state.getStartTime(),
                state.getEndTime(), state.testCount, state.successfulCount, state.failedCount);
        TestDescriptorInternal test = state.test;
        if (test.isComposite()) {
            listener.afterSuite(test, result);
        } else {
            listener.afterTest(test, result);
        }
    }
View Full Code Here

            final TestResult result = context.mock(TestResult.class);
            allowing(result).getResultType();
            will(returnValue(TestResult.ResultType.FAILURE));
            ignoring(result);

            final TestDescriptorInternal testDescriptor = context.mock(TestDescriptorInternal.class);
            allowing(testDescriptor).getName();
            will(returnValue("test"));
            allowing(testDescriptor).getParent();
            will(returnValue(null));
            allowing(testDescriptor).getId();
View Full Code Here

TOP

Related Classes of org.gradle.api.internal.tasks.testing.TestDescriptorInternal

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.