Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for DefaultTestDescriptor (0.6 sec)

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

    import javax.annotation.Nullable;
    
    @UsedByScanPlugin("test-distribution")
    @NonNullApi
    public class DefaultTestDescriptor extends AbstractTestDescriptor {
        private final String displayName;
        private final String className;
        private final String classDisplayName;
    
        @UsedByScanPlugin("test-distribution")
        public DefaultTestDescriptor(Object id, String className, String name) {
            this(id, className, name, null, name);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 20:33:30 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. subprojects/build-events/src/main/java/org/gradle/internal/build/event/types/DefaultTestDescriptor.java

    import org.gradle.tooling.internal.protocol.events.InternalOperationDescriptor;
    
    import javax.annotation.Nullable;
    import java.io.Serializable;
    
    @NonNullApi
    public class DefaultTestDescriptor implements Serializable, InternalJvmTestDescriptor, InternalOperationDescriptor {
    
        private final OperationIdentifier id;
        private final String operationName;
        private final String operationDisplayName;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 08 07:45:14 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api-builders/src/test/groovy/org/gradle/tooling/internal/provider/runner/TestExecutionResultEvaluatorTest.groovy

            1 * testExecutionRequest.getTaskSpecs() >> []
    
            def testDescriptorInternal = Mock(TestDescriptorInternal)
            def defaultTestDescriptor = Mock(DefaultTestDescriptor)
            1 * defaultTestDescriptor.getDisplayName() >> "Some Test Descriptor"
            1 * defaultTestDescriptor.getTaskPath() >> ":someTestTask"
    
            def testResult = Mock(TestResult)
            def testClassRequest = Mock(InternalJvmTestRequest)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  4. platforms/software/testing-base-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/worker/TestEventSerializerTest.groovy

            result.name == "some-test"
        }
    
        def "serializes DefaultTestDescriptor"() {
            def id = new CompositeIdGenerator.CompositeId(1L, 2L)
            def descriptor = new DefaultTestDescriptor(id, "some-class", "some-test")
    
            when:
            def result = serialize(descriptor)
    
            then:
            result instanceof DefaultTestDescriptor
            result.id == id
            result.className == "some-class"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 20:33:30 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/junit/TestClassExecutionEventGenerator.java

                if (failure != null) {
                    if (currentTests.isEmpty()) {
                        String testName = testsStarted ? "executionError": "initializationError";
                        DefaultTestDescriptor initializationError = new DefaultTestDescriptor(idGenerator.generateId(), currentTestClass.getClassName(), testName);
                        resultProcessor.started(initializationError, new TestStartEvent(now));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 06:58:24 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. platforms/software/testing-base-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/processors/CaptureTestOutputTestResultProcessorTest.groovy

            then: 1 * redirector.setOutputOwner("1")
            then: 1 * redirector.startRedirecting()
            0 * _
        }
    
        def "starts capturing only on first test"() {
            def test = new DefaultTestDescriptor("2", "Bar", "Baz")
            def testEvent = new TestStartEvent(2, "1")
    
            processor.started(new DefaultTestSuiteDescriptor("1", "Foo"), new TestStartEvent(1))
    
            when: processor.started(test, testEvent)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/results/DefaultTestResultTest.groovy

     * limitations under the License.
     */
    
    package org.gradle.api.internal.tasks.testing.results;
    
    
    import org.gradle.api.internal.tasks.testing.DefaultTestDescriptor
    import org.gradle.api.internal.tasks.testing.TestCompleteEvent
    import org.gradle.api.internal.tasks.testing.TestStartEvent
    import org.gradle.api.tasks.testing.TestResult.ResultType
    import spock.lang.Specification
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api-builders/src/test/groovy/org/gradle/tooling/internal/provider/runner/TestExecutionBuildTaskSchedulerTest.groovy

                tasks.add(testTask)
            }
            _ * context.getSelection(TEST_TASK_NAME) >> new TaskSelection(null, null, taskSelectionResult)
        }
    
        private DefaultTestDescriptor testDescriptor() {
            new DefaultTestDescriptor(Stub(OperationIdentifier), "test1", "Test $TEST_METHOD_NAME($TEST_CLASS_NAME)", "test 1", "ATOMIC", "test suite", TEST_CLASS_NAME, TEST_METHOD_NAME, null, TEST_TASK_NAME)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 06:59:43 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/junit/JUnitTestEventAdapter.java

            return new DefaultTestDescriptor(id, className(description), methodName(description));
        }
    
        private static TestDescriptorInternal nullSafeDescriptor(Object id, Description description) {
            String methodName = methodName(description);
            if (methodName != null) {
                return new DefaultTestDescriptor(id, className(description), methodName);
            } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/fixture/Snippets.groovy

                        testResultProcessor.started(rootDescr, new TestStartEvent(System.currentTimeMillis()))
    
                        OperationIdentifier testId = new OperationIdentifier(42L)
                        DefaultTestDescriptor testDescr = new DefaultTestDescriptor(testId, "org.my.MyClass", "MyCustomTest", null, "org.my.MyClass descriptor")
                        testResultProcessor.started(testDescr, new TestStartEvent(System.currentTimeMillis()))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.7K bytes
    - Viewed (0)
Back to top