Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for TestLogEvent (0.17 sec)

  1. platforms/software/testing-base/src/main/java/org/gradle/api/tasks/testing/logging/TestLogEvent.java

     * limitations under the License.
     */
    
    package org.gradle.api.tasks.testing.logging;
    
    /**
     * Test events that can be logged.
     */
    public enum TestLogEvent {
        /**
         * A test has started. This event gets fired both for atomic and composite tests.
         */
        STARTED,
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/logging/DefaultTestLoggingContainer.java

            }
    
            setEvents(EnumSet.of(TestLogEvent.FAILED));
            setExceptionFormat(TestExceptionFormat.SHORT);
    
            getInfo().setEvents(EnumSet.of(TestLogEvent.FAILED, TestLogEvent.SKIPPED, TestLogEvent.STANDARD_OUT, TestLogEvent.STANDARD_ERROR));
            getInfo().setStackTraceFilters(EnumSet.of(TestStackTraceFilter.TRUNCATE));
    
            getDebug().setEvents(EnumSet.allOf(TestLogEvent.class));
            getDebug().setMinGranularity(0);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  3. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/logging/TestEventLogger.java

                    && isLoggedEventType(TestLogEvent.STANDARD_OUT)) {
                logEvent(descriptor, TestLogEvent.STANDARD_OUT, TextUtil.indent(outputEvent.getMessage(), INDENT) + "\n");
            } else if (outputEvent.getDestination() == TestOutputEvent.Destination.StdErr
                    && isLoggedEventType(TestLogEvent.STANDARD_ERROR)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  4. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/logging/DefaultTestLogging.java

            return events.contains(TestLogEvent.STANDARD_OUT) && events.contains(TestLogEvent.STANDARD_ERROR);
        }
    
        @Override
        public TestLogging setShowStandardStreams(boolean flag) {
            if (flag) {
                events.addAll(EnumSet.of(TestLogEvent.STANDARD_OUT, TestLogEvent.STANDARD_ERROR));
            } else {
                events.removeAll(EnumSet.of(TestLogEvent.STANDARD_OUT, TestLogEvent.STANDARD_ERROR));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 10:04:16 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/jvm/AbstractConsoleJvmTestLoggingFunctionalTest.groovy

            taskOutput.contains("""MyTest > testExpectation ${TestLogEvent.STANDARD_OUT.consoleMarker}
        standard output""")
            taskOutput.contains("""MyTest > testExpectation ${TestLogEvent.STANDARD_ERROR.consoleMarker}
        standard error""")
        }
    
        def "can group multiple test log events with task"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 14:21:18 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  6. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/AbstractTestLoggerTest.groovy

            when:
            logger.logEvent(rootDescriptor, TestLogEvent.STARTED)
    
            then:
            textOutputFactory.toString() == "{TestEventLogger}{INFO}${sep}Test Run STARTED${sep}"
        }
    
        def "log Gradle worker event"() {
            createLogger(LogLevel.INFO)
    
            when:
            logger.logEvent(workerDescriptor, TestLogEvent.STARTED)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  7. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/TestEventLoggerTest.groovy

        def result = new SimpleTestResult()
    
        def "logs event if event type matches"() {
            testLogging.events(TestLogEvent.PASSED, TestLogEvent.SKIPPED)
    
            when:
            eventLogger.afterTest(methodDescriptor, result)
    
            then:
            textOutputFactory.toString().count("PASSED") == 1
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 14:45:02 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/DefaultTestLoggingContainerTest.groovy

        }
    
        def "sets defaults for level INFO"() {
            def logging = container.get(LogLevel.INFO)
    
            expect:
            logging.events == [TestLogEvent.FAILED, TestLogEvent.SKIPPED, TestLogEvent.STANDARD_OUT, TestLogEvent.STANDARD_ERROR] as Set
            logging.minGranularity == -1
            logging.maxGranularity == -1
            logging.exceptionFormat == TestExceptionFormat.FULL
            logging.showExceptions
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  9. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/logging/AbstractTestLogger.java

        private TestLogEvent lastSeenTestEvent;
    
        protected AbstractTestLogger(StyledTextOutputFactory textOutputFactory, LogLevel logLevel, int displayGranularity) {
            this.textOutputFactory = textOutputFactory;
            this.logLevel = logLevel;
            this.displayGranularity = displayGranularity;
        }
    
        protected void logEvent(TestDescriptor descriptor, TestLogEvent event) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  10. platforms/software/testing-base/src/main/java/org/gradle/api/tasks/testing/logging/TestLogging.java

         * set.
         */
        boolean getShowStandardStreams();
    
        /**
         * Sets whether output on standard out and standard error will be logged. Equivalent to setting log events {@code TestLogEvent.STANDARD_OUT} and {@code TestLogEvent.STANDARD_ERROR}.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 11.3K bytes
    - Viewed (0)
Back to top