Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 148 for HelloWorld (0.14 sec)

  1. platforms/documentation/docs/src/snippets/testKit/junitQuickstart/kotlin/src/test/java/org/gradle/sample/BuildLogicFunctionalTest.java

            BuildResult result = GradleRunner.create()
                .withProjectDir(testProjectDir)
                .withArguments("helloWorld")
                .build();
    
            assertTrue(result.getOutput().contains("Hello world!"));
            assertEquals(SUCCESS, result.task(":helloWorld").getOutcome());
        }
    
        private void writeFile(File destination, String content) throws IOException {
            BufferedWriter output = null;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/testKit/junitQuickstart/groovy/src/test/java/org/gradle/sample/BuildLogicFunctionalTest.java

            BuildResult result = GradleRunner.create()
                .withProjectDir(testProjectDir)
                .withArguments("helloWorld")
                .build();
    
            assertTrue(result.getOutput().contains("Hello world!"));
            assertEquals(SUCCESS, result.task(":helloWorld").getOutcome());
        }
    
        private void writeFile(File destination, String content) throws IOException {
            BufferedWriter output = null;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/testKit/automaticClasspathInjectionCustomTestSourceSet/groovy/src/functionalTest/groovy/org/gradle/sample/BuildLogicFunctionalTest.groovy

                    id 'org.gradle.sample.helloworld'
                }
            """
    
            when:
            def result = GradleRunner.create()
                .withProjectDir(testProjectDir)
                .withArguments('helloWorld')
                .withPluginClasspath()
                .build()
    
            then:
            result.output.contains('Hello world!')
            result.task(":helloWorld").outcome == SUCCESS
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/testKit/automaticClasspathInjectionQuickstart/groovy/src/test/groovy/org/gradle/sample/BuildLogicFunctionalTest.groovy

                    id 'org.gradle.sample.helloworld'
                }
            """
    
            when:
            def result = GradleRunner.create()
                .withProjectDir(testProjectDir)
                .withArguments('helloWorld')
                .withPluginClasspath()
                .build()
    
            then:
            result.output.contains('Hello world!')
            result.task(":helloWorld").outcome == SUCCESS
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  5. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/taskgrouping/AbstractConsoleVerboseBasicFunctionalTest.groovy

                }
                
                task silence {}
                
                task all {
                    dependsOn helloWorld, byeWorld, silence
                }
            """
            when:
            succeeds('all')
    
            then:
            result.groupedOutput.task(':helloWorld').output == helloWorldMessage
            result.groupedOutput.task(':byeWorld').output == byeWorldMessage
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  6. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/enduser/GradleRunnerPluginClasspathInjectionEndUserIntegrationTest.groovy

                    }
    
                    def "execute helloWorld task"() {
                        given:
                        buildFile << 'apply plugin: "$plugin.id"'
    
                        when:
                        def result = GradleRunner.create()
                            .withProjectDir(testProjectDir)
                            .withArguments('helloWorld')
                            .withDebug($debug)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/gopath_install.txt

    env GOPATH= # reset to default ($HOME/go, which does not exist)
    env GOBIN=
    ! go install go-cmd-test/helloworld.go
    stderr '^go: no install location for \.go files listed on command line \(GOBIN not set\)$'
    
    # With $GOBIN set, should install there.
    env GOBIN=$WORK/bin1
    go install go-cmd-test/helloworld.go
    exists $GOBIN/helloworld$GOEXE
    
    # We can't assume that we can write to GOROOT, because it may not be writable.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 15 00:06:54 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  8. platforms/extensibility/test-kit/src/testFixtures/groovy/org/gradle/testkit/runner/fixtures/PluginUnderTest.groovy

                    void apply(Project project) {
                        project.task('helloWorld$suffix', type: HelloWorld$suffix)
                    }
                }
            """
    
            projectDir.file("src/main/groovy/org/gradle/test/HelloWorld${suffix}.groovy") << """
                package org.gradle.test
    
                import org.gradle.api.DefaultTask
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  9. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerResultIntegrationTest.groovy

            given:
            buildFile << """
                task helloWorld
    
                task byeWorld {
                    onlyIf {
                        false
                    }
                }
            """
    
            when:
            def result = runner('helloWorld', 'byeWorld')
                .build()
    
            then:
            result.tasks.collect { it.path } == [':helloWorld', ':byeWorld']
            result.taskPaths(SUCCESS) == []
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  10. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerCaptureOutputIntegrationTest.groovy

            given:
            def standardOutput = new StringWriter()
            def standardError = new StringWriter()
            buildScript helloWorldWithStandardOutputAndError()
    
            when:
            def result = runner('helloWorld', "-d", "-s")
                .forwardStdOutput(standardOutput)
                .forwardStdError(standardError)
                .build()
    
            then:
            result.output.findAll(OUT).size() == 1
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 4.5K bytes
    - Viewed (0)
Back to top