Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 248 for testLib (0.12 sec)

  1. platforms/jvm/testing-jvm/src/test/groovy/org/gradle/api/internal/tasks/testing/detection/JarFilePackageListerTest.groovy

    class JarFilePackageListerTest extends Specification {
        @Rule
        private TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass())
        private final TestFile testDir = tmpDir.testDirectory
        private final TestFile zipFile = testDir.file("lib.jar")
        private final ZipOutputStream out = new ZipOutputStream(new FileOutputStream(zipFile))
    
        def lister = new JarFilePackageLister()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/testKit/testKitFunctionalTestSpockBuildCache/groovy/settings.gradle

    rootProject.name = 'testkit-spock-build-cache'...
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 47 bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/samples/build-organization/publishing-convention-plugins/groovy/convention-plugins/src/test/groovy/com/myorg/PluginTest.groovy

    package com.myorg
    
    import org.gradle.testkit.runner.GradleRunner
    import spock.lang.Specification
    import spock.lang.TempDir
    
    abstract class PluginTest extends Specification {
        @TempDir
        File testProjectDir
        File settingsFile
        File buildFile
    
        def setup() {
            settingsFile = new File(testProjectDir, 'settings.gradle').tap { it << "rootProject.name = 'test'" }
            buildFile = new File(testProjectDir, 'build.gradle')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 947 bytes
    - Viewed (0)
  4. platforms/extensibility/test-kit/src/main/java/org/gradle/testkit/runner/internal/GradleProvider.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.testkit.runner.internal;
    
    import org.gradle.testkit.runner.GradleRunner;
    import org.gradle.tooling.GradleConnector;
    import org.gradle.tooling.internal.consumer.DefaultGradleConnector;
    
    import java.io.File;
    import java.net.URI;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  5. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/tasks/InitBuildSpec.groovy

            // Don't store userHome in the default location (in the project dir), because this will cause the non-empty project dir detection to fail
            init = TestUtil.create(testDir.testDirectory.file("project"), testDir.testDirectory.file("userHome")).task(InitBuild)
            projectLayoutRegistry = Mock()
            defaultGenerator = Mock()
            buildConverter = Mock()
            init.projectLayoutRegistry = projectLayoutRegistry
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 20:10:43 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  6. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/plugin/groovy/spock/PluginFunctionalTest.groovy.template

    ${fileComment.multilineComment}${packageDecl.statement}
    import spock.lang.Specification
    import spock.lang.TempDir
    import org.gradle.testkit.runner.GradleRunner
    
    /**
     * A simple functional test for the '${pluginId.value}' plugin.
     */
    class ${className.javaIdentifier} extends Specification {
        @TempDir
        private File projectDir
    
        private getBuildFile() {
            new File(projectDir, "build.gradle")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 979 bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformIncrementalIntegrationTest.groovy

            createDirs("a", "included")
            settingsFile << """
                includeBuild("included") {
                    dependencySubstitution {
                        substitute(module("com.test:lib")).using(project(":b"))
                    }
                }
                include ":a"
            """
            file("a/build.gradle") << """
                buildscript {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 10:57:29 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerCaptureOutputIntegrationTest.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.testkit.runner
    
    import org.gradle.integtests.fixtures.executer.OutputScrapingExecutionResult
    import org.gradle.testkit.runner.fixtures.InspectsBuildOutput
    import org.gradle.util.internal.RedirectStdOutAndErr
    import org.junit.Rule
    
    @InspectsBuildOutput
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  9. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/use/AlreadyOnClasspathPluginUseIntegrationTest.groovy

            operations.hasOperation("Apply plugin my-plugin to project ':a'")
        }
    
        @Requires(IntegTestPreconditions.NotEmbeddedExecutor) // TestKit usage inside of the test requires distribution
        def "can request plugin from TestKit injected classpath"() {
    
            given:
            withBinaryPluginBuild(".", new TestKitSpec(
                requestPlugin("my-plugin", null, false),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  10. platforms/extensibility/test-kit/src/main/java/org/gradle/testkit/runner/internal/GradleExecutor.java

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.testkit.runner.internal;
    
    public interface GradleExecutor {
        GradleExecutionResult run(GradleExecutionParameters parameters);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 767 bytes
    - Viewed (0)
Back to top