Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for collectOutput (0.24 sec)

  1. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/junit/result/TestOutputStoreSpec.groovy

            writer.onOutput(1, 2, output(StdOut, "[out-6]"))
            writer.close()
            def reader = output.reader()
    
            then:
            collectOutput(reader, 1, 1, StdOut) == "[out-2][out-5]"
            collectOutput(reader, 1, 1, StdErr) == "[out-4]"
            collectOutput(reader, 1, 2, StdOut) == "[out-6]"
    
            cleanup:
            reader.close()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r73/DependencyArtifactDownloadProgressEventCrossVersionTest.groovy

            modules.useLargeJars()
    
            when:
            def events = ProgressEvents.create()
            withConnection { ProjectConnection connection ->
                def build = connection.newBuild()
                collectOutputs(build)
                build.addProgressListener(events, OperationType.FILE_DOWNLOAD)
                    .run()
            }
    
            then:
            events.operations.size() == 8
            events.trees == events.operations
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r48/PhasedBuildActionCrossVersionSpec.groovy

                    .projectsLoaded(new FailAction(), projectsLoadedHandler)
                    .buildFinished(new ActionShouldNotBeCalled(), buildFinishedHandler)
                    .build()
    
                collectOutputs(action)
                action.run()
            }
    
            then:
            BuildActionFailureException e = thrown()
            e.message == "The supplied phased action failed with an exception."
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r86/StreamingBuildActionCrossVersionTest.groovy

                models.add(model)
                finished.countDown()
            } as ResultHandler
    
            withConnection {
                def builder = it.action(new ModelStreamingBuildAction())
                collectOutputs(builder)
                builder.setStreamedValueListener(listener)
                builder.run(handler)
                finished.await()
            }
    
            then:
            models.size() == 3
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 07 03:20:59 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r73/DeferredConfigurationCrossVersionSpec.groovy

        def "does not configure build when action does not query any models"() {
            setupBuild()
    
            when:
            def model = withConnection {
                def executer = action(new NoOpAction())
                collectOutputs(executer)
                executer.run()
            }
    
            then:
            model == "result"
    
            and:
            assertHasConfigureSuccessfulLogging()
            result.assertNotOutput(prefix)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r76/TestLauncherTaskExecutionCrossVersionSpec.groovy

                tasks.register('cleanupTest')
            '''
    
            when:
            withConnection { ProjectConnection connection ->
                TestLauncher testLauncher = connection.newTestLauncher()
                collectOutputs(testLauncher)
    
                testLauncher.forTasks("setupTest")
                            .withTestsFor(s -> s.forTaskPath(":test")
                            .includeMethod('MyTest', 'pass'))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r68/CompositeBuildTaskExecutionCrossVersionSpec.groovy

            when:
            withConnection { connection ->
                TestLauncher launcher = connection.newTestLauncher().withTests(descriptor)
                collectOutputs(launcher)
                launcher.run()
            }
    
            then:
            outputContains("BUILD SUCCESSFUL")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r50/ProjectStateLockingCrossVersionTest.groovy

                """
            }
    
            when:
            withConnection {
                def executer = action(new FetchIdeaProject())
                executer.withArguments("--warning-mode", "all")
                collectOutputs(executer)
                executer.run()
            }
    
            then:
            !stdout.toString().contains("was resolved without accessing the project in a safe manner")
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r81/DependencyArtifactDownloadProgressEventCrossVersionTest.groovy

            when:
            def events = ProgressEvents.create()
            withConnection { ProjectConnection connection ->
                def build = connection.newBuild()
                collectOutputs(build)
                build.addProgressListener(events, OperationType.FILE_DOWNLOAD)
                    .run()
            }
    
            then:
            events.operations.size() == 3
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r68/CompositeBuildBuildActionExecuterCrossVersionSpec.groovy

                }
            """
    
            when:
            toolingApi.withConnection { ProjectConnection connection ->
                def buildAction = connection.action(new LoadCompositeModel(GradleProject))
                collectOutputs(buildAction)
                buildAction.forTasks([':other-build:sub:doSomething'])
                buildAction.run()
            }
    
            then:
            stdout.toString().contains("do something")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top