Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for interactiveExecution (0.29 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/userinput/UserInputHandlingIntegrationTest.groovy

            input | stdin | accepted
            YES   | "yes" | true
            NO    | "no"  | false
        }
    
        def "can ask yes/no and handle invalid input in interactive build"() {
            given:
            interactiveExecution()
    
            when:
            def gradleHandle = executer.withTasks("askYesNo").start()
    
            then:
            poll(INTERACTIVE_WAIT_TIME_SECONDS) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/userinput/AbstractUserInputHandlerIntegrationTest.groovy

    import org.gradle.integtests.fixtures.AbstractIntegrationSpec
    
    abstract class AbstractUserInputHandlerIntegrationTest extends AbstractIntegrationSpec {
    
        protected void interactiveExecution() {
            executer.withStdinPipe().withForceInteractive(true)
        }
    
        protected void withRichConsole(boolean enabled) {
            if (enabled) {
                executer.withConsole(ConsoleOutput.Rich)
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 23 21:21:49 UTC 2018
    - 1.2K bytes
    - Viewed (0)
Back to top