Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for withConsole (0.17 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/console/AbstractExecOutputIntegrationTest.groovy

                            classpath = sourceSets.main.runtimeClasspath
                            mainClass = 'Main'
                        }
                    }
                }
            """
    
            when:
            executer.withConsole(consoleType)
            succeeds("run")
    
            then:
            def output = result.groupedOutput.task(':run').output
            output.contains(EXPECTED_OUTPUT)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/jvm/AbstractConsoleJvmTestLoggingFunctionalTest.groovy

            given:
            file(JAVA_TEST_FILE_PATH) << javaTestClass {
                'throw new RuntimeException("expected");'
            }
    
            when:
            executer.withConsole(consoleType)
            fails(TEST_TASK_NAME)
    
            then:
            def taskOutput = getTaskOutput(result)
            matchesTaskOutput(taskOutput, testLogEventRegex(TestLogEvent.FAILED.consoleMarker))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 14:21:18 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/integTest/groovy/org/gradle/integtests/fixtures/executer/InProcessGradleExecuterIntegrationTest.groovy

                .withTestConsoleAttached()
                .withConsole(console)
                .run()
    
            System.out.println("AFTER OUT")
            System.err.println("AFTER ERR")
    
            def result2 = executer
                .inDirectory(temporaryFolder.testDirectory)
                .withTasks("help")
                .withTestConsoleAttached()
                .withConsole(console)
                .run()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/console/AbstractConsoleGroupedTaskFunctionalTest.groovy

        static ConsoleAttachment consoleAttachment
    
        def setup() {
            executer.withTestConsoleAttached(consoleAttachment)
            executer.beforeExecute {
                it.withConsole(consoleType)
            }
        }
    
        boolean errorsShouldAppearOnStdout() {
            // If both stdout and stderr is attached to the console, they are merged together
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top