Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for testDescriptor (0.34 sec)

  1. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/TestWorkerProgressListenerTest.groovy

            def testEvent2 = new TestEvent('Gradle Test Executor 2', 'org.gradle.Test2')
            def testDescriptor1 = createTestDescriptor(testEvent1)
            def testDescriptor2 = createTestDescriptor(testEvent2)
    
            when:
            testWorkerProgressListener.started(testDescriptor1, createTestStartEvent())
            testWorkerProgressListener.started(testDescriptor2, createTestStartEvent())
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 10.3K 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/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/parameters/BuildProgressListenerAdapterForTestOperationsTest.groovy

            when:
            def testDescriptor = Mock(InternalJvmTestDescriptor)
            _ * testDescriptor.getId() >> 1
            _ * testDescriptor.getName() >> 'some test suite'
            _ * testDescriptor.getDisplayName() >> 'some test suite in human readable form'
            _ * testDescriptor.getTestKind() >> InternalJvmTestDescriptor.KIND_SUITE
            _ * testDescriptor.getSuiteName() >> 'some suite'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/test/groovy/org/gradle/api/tasks/testing/TestTaskSpec.groovy

            suiteDescriptor.composite >> true
    
            testDescriptor.id >> "test"
            testDescriptor.parent >> suiteDescriptor
            testDescriptor.composite >> false
            testDescriptor.className >> "class"
            testDescriptor.classDisplayName >> "class"
            testDescriptor.name >> "method"
            testDescriptor.displayName >> "method"
    
            def suiteStartEvent = Stub(TestStartEvent) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/results/StateTrackingTestResultProcessorTest.groovy

        def "outputs for completed tests use parent descriptors"() {
            given:
            TestDescriptor root = new DefaultTestSuiteDescriptor("1", "CanineSuite");
            TestDescriptor suite = new DefaultTestSuiteDescriptor("1.1", "DogTest");
            TestDescriptor test1 = new DefaultTestDescriptor("1.1.1", "DogTest", "shouldBarkAtStrangers");
            TestDescriptor test2 = new DefaultTestDescriptor("1.1.2", "DogTest", "shouldLoiter");
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 14.6K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api-builders/src/main/java/org/gradle/tooling/internal/provider/runner/TestExecutionResultEvaluator.java

                if (!testDescriptor.isComposite() && testResult.getFailedTestCount() != 0) {
                    failedTests.add(new FailedTest(testDescriptor.getName(), testDescriptor.getClassName(), getTaskPath(buildOperation.getId(), testDescriptor)));
                }
            }
        }
    
        private String getTaskPath(OperationIdentifier buildOperationId, TestDescriptorInternal descriptor) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 13:57:30 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/CrossVersionTestEngine.java

            this.discoveryRequest = request;
        }
    
        TestDescriptor discover(final TestEngine discoveryEngine) {
            return SystemProperties.getInstance().withSystemProperties(systemProperties, new Factory<TestDescriptor>() {
                @Override
                public TestDescriptor create() {
                    return discoveryEngine.discover(discoveryRequest, id);
                }
            });
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 13.4K bytes
    - Viewed (0)
  10. platforms/software/testing-base/src/testFixtures/groovy/org/gradle/testing/AbstractTestFrameworkIntegrationTest.groovy

                    void beforeSuite(TestDescriptor suite) { println "START Test Suite [\$suite.className] [\$suite.name]" }
                    void afterSuite(TestDescriptor suite, TestResult result) { println "FINISH Test Suite [\$suite.className] [\$suite.name] [\$result.resultType] [\$result.testCount]" }
                    void beforeTest(TestDescriptor test) { println "START Test Case [\$test.className] [\$test.name]" }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 12.2K bytes
    - Viewed (0)
Back to top