Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for testDescriptor (0.23 sec)

  1. platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/tasks/testing/TestDescriptor.java

    /**
     * Describes a test. A test may be a single atomic test, such as the execution of a test method, or it may be a
     * composite test, made up of zero or more tests.
     */
    @HasInternalProtocol
    @NonNullApi
    public interface TestDescriptor {
        /**
         * Returns the name of the test.  Not guaranteed to be unique.
         *
         * @return The test name
         */
        String getName();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 20:33:30 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api-builders/src/main/java/org/gradle/tooling/internal/provider/runner/TestOperationMapper.java

         * {@link #adjustOperationDisplayNameForIntelliJ(String, AbstractTestDescriptor) 2}) are removed
         */
        private static TestDescriptor getOriginalDescriptor(TestDescriptor testDescriptor) {
            if (testDescriptor instanceof DecoratingTestDescriptor) {
                return getOriginalDescriptor(((DecoratingTestDescriptor) testDescriptor).getDescriptor());
            } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 08:42:44 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  3. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/operations/TestListenerBuildOperationAdapter.java

            Details(TestDescriptor testDescriptor, long startTime) {
                this.testDescriptor = testDescriptor;
                this.startTime = startTime;
            }
    
            @Override
            public TestDescriptor getTestDescriptor() {
                return testDescriptor;
            }
    
            @Override
            public long getStartTime() {
                return startTime;
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  4. build-logic/cleanup/src/main/kotlin/gradlebuild/cleanup/services/DaemonTracker.kt

            cleanUpDaemons()
        }
    
        fun newDaemonListener() =
            object : TestListener {
                override fun beforeTest(test: TestDescriptor) = Unit
                override fun afterTest(test: TestDescriptor, result: TestResult) = Unit
                override fun beforeSuite(suite: TestDescriptor) {
                    if (suite.parent == null) {
                        forEachJavaProcess { pid, _ ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 08 12:45:57 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/AbstractTestDescriptor.java

         * It should be in TestDescriptor, but moved here for backward compatibility
         *  TODO: move it to TestDescriptor interface with 9.0
         *
         * @return The method name. May return null.
         * @since 8.8
         * @see org.gradle.tooling.internal.provider.runner.TestOperationMapper#getLegacyOperationDisplayName(String, TestDescriptor)
         */
        @Incubating
        @Nullable
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 20:33:30 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. platforms/software/testing-base/src/main/java/org/gradle/api/tasks/testing/TestListener.java

         */
        void beforeTest(TestDescriptor testDescriptor);
    
        /**
         * Called after an atomic test is finished.
         * @param testDescriptor The test which has finished executing.
         * @param result The test result.
         */
        void afterTest(TestDescriptor testDescriptor, TestResult result);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  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