Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for setOutputOwner (0.18 sec)

  1. platforms/software/testing-base-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/redirector/TestOutputRedirectorTest.groovy

        }
    
        def "allows setting output owner"() {
            when:
            redirector.setOutputOwner("1")
            redirector.startRedirecting()
    
            then:
            redirector.outForwarder.outputOwner == "1"
            redirector.errForwarder.outputOwner == "1"
    
            when:
            redirector.setOutputOwner("2")
    
            then:
            redirector.outForwarder.outputOwner == "2"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. platforms/software/testing-base-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/processors/CaptureTestOutputTestResultProcessorTest.groovy

            def event = new TestStartEvent(1)
    
            when:
            processor.started(suite, event)
    
            then: 1 * target.started(suite, event)
            then: 1 * redirector.setOutputOwner("1")
            then: 1 * redirector.startRedirecting()
            0 * _
        }
    
        def "starts capturing only on first test"() {
            def test = new DefaultTestDescriptor("2", "Bar", "Baz")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/processors/CaptureTestOutputTestResultProcessor.java

        }
    
        @Override
        public void started(final TestDescriptorInternal test, TestStartEvent event) {
            processor.started(test, event);
    
            outputRedirector.setOutputOwner(test.getId());
    
            if (rootId == null) {
                outputRedirector.startRedirecting();
                rootId = test.getId();
            } else {
                Object parentId = event.getParentId();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/redirector/TestOutputRedirector.java

            redirector.redirectStandardErrorTo(errForwarder);
            redirector.start();
        }
    
        public void stopRedirecting() {
            redirector.stop();
        }
    
        public void setOutputOwner(Object testId) {
            assert testId != null;
            if (System.out != null) {
                System.out.flush();
            }
            if (System.err != null) {
                System.err.flush();
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top