Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for helloWorldWithStandardOutputAndError (0.29 sec)

  1. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerCaptureOutputIntegrationTest.groovy

        def "can capture stdout and stderr"() {
            given:
            def standardOutput = new StringWriter()
            def standardError = new StringWriter()
            buildScript helloWorldWithStandardOutputAndError()
    
            when:
            def result = runner('helloWorld', "-d", "-s")
                .forwardStdOutput(standardOutput)
                .forwardStdError(standardError)
                .build()
    
            then:
    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