Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 61 for testDescriptor (0.28 sec)

  1. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitTestListenerIntegrationTest.groovy

                    void beforeSuite(TestDescriptor suite) { println "START [\$suite] [\$suite.name]" }
                    void afterSuite(TestDescriptor suite, TestResult result) { println "FINISH [\$suite] [\$suite.name] [\$result.resultType] [\$result.testCount]" }
                    void beforeTest(TestDescriptor test) { println "START [\$test] [\$test.name]" }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  2. platforms/software/testing-base/src/integTest/groovy/org/gradle/testing/TestExecutionBuildOperationsIntegrationTest.groovy

            def rootTestOp = operations.first(ExecuteTestBuildOperationType)
            rootTestOp.details.testDescriptor.name.startsWith("Gradle Test Run :test")
            rootTestOp.details.testDescriptor.className == null
            rootTestOp.details.testDescriptor.composite == true
    
            assertJunit(rootTestOp, operations)
        }
    
        def "emitsBuildOperationsForTestNgTests"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  3. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/logging/TestCountLogger.java

            this.factory = factory;
            this.logger = logger;
        }
    
        @Override
        public void beforeTest(TestDescriptor testDescriptor) {
        }
    
        @Override
        public void afterTest(TestDescriptor testDescriptor, TestResult result) {
            totalTests += result.getTestCount();
            failedTests += result.getFailedTestCount();
            skippedTests += result.getSkippedTestCount();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  4. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/FullExceptionFormatterTest.groovy

    import spock.lang.Specification
    
    class FullExceptionFormatterTest extends Specification {
        def testDescriptor = new SimpleTestDescriptor()
        def testLogging = Mock(TestLogging)
        def formatter = new FullExceptionFormatter(testLogging)
    
        def "shows all exceptions that have occurred for a test"() {
            expect:
            formatter.format(testDescriptor, [new RuntimeException("oops"), new Exception("ouch")]) == """\
        java.lang.RuntimeException: oops
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/logging/AbstractTestLogger.java

            this.logLevel = logLevel;
            this.displayGranularity = displayGranularity;
        }
    
        protected void logEvent(TestDescriptor descriptor, TestLogEvent event) {
            logEvent(descriptor, event, null);
        }
    
        protected void logEvent(TestDescriptor descriptor, TestLogEvent event, @Nullable String details) {
            StyledTextOutput output = textOutputFactory.create("TestEventLogger", logLevel);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  6. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/ShortExceptionFormatterTest.groovy

            expect:
            formatter.format(testDescriptor, exceptions) == """\
        java.io.IOException at FileName1.java:11
        java.lang.AssertionError at FileName0.java:1
    """
        }
    
        def "shows test entry point if it can be determined"() {
            def exception = new Exception("oops")
            testDescriptor.className = getClass().name
    
            expect:
            formatter.format(testDescriptor, [exception]) == """\
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  7. platforms/jvm/testing-junit-platform/src/main/java/org/gradle/api/internal/tasks/testing/junitplatform/JUnitPlatformTestClassProcessor.java

                }
    
                Optional<TestDescriptor> parent = descriptor.getParent();
                return parent.isPresent() && shouldRun(parent.get(), true);
            }
    
            private boolean shouldRun(TestDescriptor descriptor, boolean checkingParent, ClassSource classSource) {
                Set<? extends TestDescriptor> children = descriptor.getChildren();
                if (!checkingParent) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  8. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/logging/FullExceptionFormatter.java

        }
    
        private List<StackTraceElement> filterStackTrace(Throwable exception, TestDescriptor descriptor) {
            Spec<StackTraceElement> filterSpec = createCompositeFilter(descriptor);
            StackTraceFilter filter = new StackTraceFilter(filterSpec);
            return filter.filter(exception);
        }
    
        private Spec<StackTraceElement> createCompositeFilter(TestDescriptor descriptor) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  9. platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/TestDescriptorInternal.java

    package org.gradle.api.internal.tasks.testing;
    
    import org.gradle.api.NonNullApi;
    import org.gradle.api.tasks.testing.TestDescriptor;
    import org.gradle.internal.scan.UsedByScanPlugin;
    
    import javax.annotation.Nullable;
    
    @UsedByScanPlugin
    @NonNullApi
    public interface TestDescriptorInternal extends TestDescriptor {
        @Nullable
        @Override
        TestDescriptorInternal getParent();
    
        Object getId();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 20:33:30 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  10. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/results/TestListenerInternal.java

    @UsedByScanPlugin
    @EventScope(Scope.Build.class)
    public interface TestListenerInternal {
        void started(TestDescriptorInternal testDescriptor, TestStartEvent startEvent);
    
        void completed(TestDescriptorInternal testDescriptor, TestResult testResult, TestCompleteEvent completeEvent);
    
        void output(TestDescriptorInternal testDescriptor, TestOutputEvent event);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top