Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for testSources (1.71 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/plugins/ide/tooling/r50/ToolingApiIdeaModelCrossVersionSpec.groovy

        }
    
        test {
            java { srcDirs = ['testSources'] }
            resources { srcDirs = ['testResources'] }
        }
    
    }
    '''
    
            projectDir.create {
                mainSources {}
                mainResources {}
                fooSources {}
                fooResources {}
                testSources {}
                testResources {}
            }
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitCategoriesOrTagsCoverageIntegrationSpec.groovy

             * Add an arbitrary test source file to the sources.  This can be used to add supplementary classes or complex test classes to the sources.
             */
            TestSource sourceFile(String relativePath, String sourceSet = 'test') {
                TestSource source = new TestSource(relativePath, sourceSet)
                sources << source
                return source
            }
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 01 14:54:49 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/jupiter/JUnitJupiterCategoriesOrTagsCoverageIntegrationTest.groovy

                        }
                    """.stripIndent()
            }
    
            private TestFile writeSourceFile(AbstractJUnitCategoriesOrTagsCoverageIntegrationSpec.TestSource testSource) {
                testDirectory.file("src/test/java/${testSource.relativePath}") << testSource.source.stripIndent()
            }
    
            private String generateTestMethod(AbstractJUnitCategoriesOrTagsCoverageIntegrationSpec.TestMethod method) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/ide/ideaAdditionalTestSources/kotlin/build.gradle.kts

    }
    
    // tag::mark-additional-sourcesets-as-test[]
    sourceSets {
        create("intTest") {
            java {
                setSrcDirs(listOf("src/integration"))
            }
        }
    }
    
    idea {
        module {
            testSources.from(sourceSets["intTest"].java.srcDirs)
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 341 bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/JUnit4CategoriesOrTagsCoverageIntegrationTest.groovy

        }
    
        def 'reports unloadable #type'() {
            given:
            testSources.with {
                testClass('SomeTestClass').with {
                    testMethod('ok1')
                    testMethod('ok2')
                }
            }
            testSourceGenerator.writeAllSources(testSources)
            buildFile << """
                apply plugin: "java"
    
                ${mavenCentralRepository()}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  6. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/LanguageSourceSetIntegrationTest.groovy

            buildType.testSources.@type[0] == "org.gradle.model.ModelSet<CustomSourceSet>"
            buildType.testSources.@creator[0] == 'Rules#buildType(BuildType)'
            buildType.testSources."0".@type[0] == 'CustomSourceSet'
            buildType.testSources."0".@creator[0] == 'Rules#addSources(BuildType) > create()'
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/AbstractJUnit4CategoriesOrTagsCoverageIntegrationTest.groovy

                        }
                    """.stripIndent()
            }
    
            private TestFile writeSourceFile(AbstractJUnitCategoriesOrTagsCoverageIntegrationSpec.TestSource testSource) {
                testDirectory.file("src/test/java/${testSource.relativePath}") << testSource.source.stripIndent()
            }
    
            private String categoryAnnotation(List<String> categories) {
                if (!categories.isEmpty()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  8. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/FunctionalSourceSetIntegrationTest.groovy

            buildType.testSources.@type[0] == 'org.gradle.model.ModelSet<org.gradle.language.base.FunctionalSourceSet>'
            buildType.testSources.@creator[0] == 'Rules#buildType(BuildType)'
            buildType.testSources."0".@type[0] == 'org.gradle.language.base.FunctionalSourceSet'
            buildType.testSources."0".@creator[0] == 'Rules#addSources(BuildType) > create()'
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  9. testing/smoke-ide-test/build.gradle.kts

        from(zipTree(ideStarter.elements.map { it.single() }))
        into(layout.buildDirectory.dir("ideStarter"))
    }
    
    plugins.withType<IdeaPlugin> {
        with(model) {
            module {
                testSources.from(smokeIdeTestSourceSet.java.srcDirs, smokeIdeTestSourceSet.groovy.srcDirs)
                testResources.from(smokeIdeTestSourceSet.resources.srcDirs)
            }
        }
    }
    
    tasks.register<SmokeIdeTest>("smokeIdeTest") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 08 18:13:31 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  10. build-logic/integration-testing/src/main/kotlin/gradlebuild.test-fixtures.gradle.kts

        skip()
    }
    
    plugins.withType<IdeaPlugin> {
        configure<IdeaModel> {
            module {
                val testFixtures = sourceSets.testFixtures.get()
                testSources.from(testFixtures.java.srcDirs)
                testSources.from(testFixtures.groovy.srcDirs)
                testResources.from(testFixtures.resources.srcDirs)
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 12 13:19:06 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top