Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for withConsole (0.23 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)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/RemoteDependencyResolveConsoleIntegrationTest.groovy

            def jars = server.expectConcurrentAndBlock(getM1Jar, getM2Jar)
    
            when:
            executer.withTestConsoleAttached()
            executer.withConsole(ConsoleOutput.Rich)
            def build = executer.withTasks("resolve").withArguments("--max-workers=2").start()
            metaData.waitForAllPendingCalls()
    
            then:
            ConcurrentTestUtil.poll {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Jan 14 00:59:27 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/GradleExecuter.java

        GradleExecuter withOwnUserHomeServices();
    
        /**
         * Executes the build with {@code "--console=rich, auto, verbose"} argument.
         *
         * @see RichConsoleStyling
         */
        GradleExecuter withConsole(ConsoleOutput consoleOutput);
    
        /**
         * Executes the build with {@code "--warning-mode=none, summary, fail, all"} argument.
         *
         * @see WarningMode
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/AbstractGradleExecuter.java

            }
    
            if (durationMeasurement != null) {
                executer.withDurationMeasurement(durationMeasurement);
            }
    
            if (consoleType != null) {
                executer.withConsole(consoleType);
            }
    
            executer.withWarningMode(warningMode);
    
            if (showStacktrace) {
                executer.withStacktraceEnabled();
            }
    
            if (renderWelcomeMessage) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 55.1K bytes
    - Viewed (0)
Back to top