Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for testSourceSets (0.31 sec)

  1. platforms/extensibility/plugin-development/src/main/java/org/gradle/plugin/devel/GradlePluginDevelopmentExtension.java

         * method will overwrite any existing test source sets with the provided arguments.
         *
         * @param testSourceSets the test source sets
         */
        public void testSourceSets(SourceSet... testSourceSets) {
            this.testSourceSets.clear();
            this.testSourceSets.addAll(Arrays.asList(testSourceSets));
        }
    
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  2. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/eclipse/model/internal/SourceFoldersCreator.java

                        SourceFolder folder = createSourceFolder(testSourceSets, provideRelativePath, sourceSetOutputPaths, sourceSetUsages, sourceSet, tree, dir);
                        entries.add(folder);
                    }
                }
            }
            return entries.build();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 13:57:30 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/ide/eclipse/kotlin/build.gradle.kts

    val functional by configurations.creating
    
    eclipse {
        classpath {
            plusConfigurations += functional
        }
    }
    
    // tag::test-sources[]
    eclipse {
        classpath {
            testSourceSets = testSourceSets.get() + setOf(integTest)
            testConfigurations = testConfigurations.get() + setOf(functional)
        }
    }
    // end::test-sources[]
    
    // tag::test-fixtures[]
    eclipse {
        classpath {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/testKit/automaticClasspathInjectionCustomTestSourceSet/groovy/build.gradle

        classpath = sourceSets.functionalTest.runtimeClasspath
        useJUnitPlatform()
    }
    
    tasks.named("check") {
        dependsOn functionalTestTask
    }
    
    gradlePlugin {
        testSourceSets sourceSets.functionalTest
    }
    
    dependencies {
        functionalTestImplementation('org.spockframework:spock-core:2.2-groovy-3.0') {
            exclude group: 'org.codehaus.groovy'
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 810 bytes
    - Viewed (0)
  5. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/plugins/JavaGradlePluginPluginTestKitSetupIntegrationTest.groovy

                            srcDir 'src/functional/java'
                        }
                    }
                }
    
                gradlePlugin {
                    testSourceSets sourceSets.functionalTest
                }
    
                gradlePlugin {
                    testSourceSets sourceSets.integrationTest
                }
    
                task assertFunctionalTestHasTestKit() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  6. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/eclipse/model/EclipseClasspath.java

        private final SetProperty<SourceSet> testSourceSets;
        private final SetProperty<Configuration> testConfigurations;
    
        @Inject
        public EclipseClasspath(org.gradle.api.Project project) {
            this.project = project;
            this.containsTestFixtures = project.getObjects().property(Boolean.class).convention(false);
            this.testSourceSets = project.getObjects().setProperty(SourceSet.class);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/samples/build-organization/gradle-plugin/kotlin/greeting-plugin/build.gradle.kts

            implementationClass = "com.example.plugin.GreetingPlugin"
        }
    }
    // end::plugin[]
    
    // Add a source set and a task for a functional test suite
    val functionalTest by sourceSets.creating
    gradlePlugin.testSourceSets(functionalTest)
    
    configurations[functionalTest.implementationConfigurationName].extendsFrom(configurations.testImplementation.get())
    
    val functionalTestTask = tasks.register<Test>("functionalTest") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/ide/eclipse/groovy/build.gradle

    configurations {
        functional
    }
    
    eclipse {
        classpath {
            plusConfigurations += [configurations.functional]
        }
    }
    
    // tag::test-sources[]
    eclipse {
        classpath {
            testSourceSets = testSourceSets.get() + [sourceSets.integTest]
            testConfigurations = testConfigurations.get() + [configurations.functional]
        }
    }
    // end::test-sources[]
    
    // tag::test-fixtures[]
    eclipse {
        classpath {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/developingPlugins/testingPlugins/kotlin/url-verifier-plugin/build.gradle.kts

    }
    
    tasks.withType<Test>().configureEach {
        // Using JUnitPlatform for running tests
        useJUnitPlatform()
    }
    // end::test-framework[]
    
    // tag::source-set-config[]
    gradlePlugin {
        testSourceSets(functionalTest)
    }
    // end::source-set-config[]
    
    gradlePlugin {
        plugins {
            create("urlVerifierPlugin") {
                id = "org.myorg.url-verifier"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/testKit/automaticClasspathInjectionCustomTestSourceSet/kotlin/build.gradle.kts

        testClassesDirs = functionalTest.output.classesDirs
        classpath = functionalTest.runtimeClasspath
        useJUnitPlatform()
    }
    
    tasks.check {
        dependsOn(functionalTestTask)
    }
    
    gradlePlugin {
        testSourceSets(functionalTest)
    }
    
    dependencies {
        "functionalTestImplementation"("org.spockframework:spock-core:2.2-groovy-3.0") {
            exclude(group = "org.codehaus.groovy")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 769 bytes
    - Viewed (0)
Back to top