Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 56 for testLogging (0.44 sec)

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

        }
    
        private TestExceptionFormatter getExceptionFormatter(TestLogging testLogging) {
            switch (testLogging.getExceptionFormat()) {
                case SHORT:
                    return new ShortExceptionFormatter(testLogging);
                case FULL:
                    return new FullExceptionFormatter(testLogging);
                default:
                    throw new AssertionError();
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 18:49:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  2. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/DefaultTestLoggingContainerTest.groovy

            def logging = container.get(level)
            def configMethod = level.toString().toLowerCase()
    
            when:
            container."$configMethod"(new Action<TestLogging>() {
                void execute(TestLogging l) {
                    l.showExceptions = false
                }
            })
    
            then:
            !logging.showExceptions
    
            where:
            level << LogLevel.values()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/integTest/resources/org/gradle/testing/cucumberjvm/CucumberJVMReportIntegrationTest/testReportingSupportsCucumberStepsWithSlashes/build.gradle

    repositories {
        mavenCentral()
    }
    
    dependencies {
        testImplementation "io.cucumber:cucumber-java:6.8.1"
        testImplementation "io.cucumber:cucumber-junit:6.8.1"
    }
    
    test {
        testLogging.showStandardStreams = true
        testLogging.events 'started', 'passed', 'skipped', 'failed', 'standardOut', 'standardError'
        reports.junitXml.required = true
        reports.html.required = true
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGConsoleLoggingIntegrationTest.groovy

                            useTestNG('6.3.1')
    
                            targets {
                                all {
                                    testTask.configure {
                                        testLogging {
                                            quiet {
                                                events "skipped", "failed"
                                                minGranularity 2
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 6.6K bytes
    - Viewed (1)
  5. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/enduser/GradleRunnerDefaultTestKitDirIntegrationTest.groovy

                            useSpock()
                        }
                    }
                }
    
                tasks.withType(Test).configureEach {
                    testLogging.exceptionFormat = 'full'
                    testLogging.showStandardStreams = true
                    testLogging.events "started", "skipped", "failed", "passed", "standard_out", "standard_error"
                }
            """
        }
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  6. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/logging/DefaultTestLogging.java

    import org.gradle.api.tasks.testing.logging.TestLogging;
    import org.gradle.api.tasks.testing.logging.TestStackTraceFilter;
    
    import java.util.EnumSet;
    import java.util.Set;
    
    import static org.gradle.util.internal.GUtil.toEnum;
    import static org.gradle.util.internal.GUtil.toEnumSet;
    
    public class DefaultTestLogging implements TestLogging {
        private Set<TestLogEvent> events = EnumSet.noneOf(TestLogEvent.class);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 10:04:16 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/java/basic/groovy/build.gradle

        testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
    }
    
    tasks.named('test', Test) {
        useJUnitPlatform()
    
        maxHeapSize = '1G'
    
        testLogging {
            events "passed"
        }
    }
    // end::java-basic-test-config[]
    
    // tag::practical-integ-test-source-set[]
    sourceSets {
        intTest {
            compileClasspath += sourceSets.main.output
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/java/basic/kotlin/build.gradle.kts

        testRuntimeOnly("org.junit.platform:junit-platform-launcher")
    }
    
    tasks.named<Test>("test") {
        useJUnitPlatform()
    
        maxHeapSize = "1G"
    
        testLogging {
            events("passed")
        }
    }
    // end::java-basic-test-config[]
    
    // tag::practical-integ-test-source-set[]
    sourceSets {
        create("intTest") {
            compileClasspath += sourceSets.main.get().output
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/testing/testng-groupbyinstances/kotlin/build.gradle.kts

    dependencies {
        testImplementation("org.testng:testng:6.9.4")
    }
    
    // tag::test-config[]
    tasks.test {
        useTestNG {
            groupByInstances = true
        }
    }
    // end::test-config[]
    
    tasks.test {
        testLogging.showStandardStreams = true
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 299 bytes
    - Viewed (0)
  10. platforms/software/testing-base/src/integTest/resources/org/gradle/testing/RetainStacktraceForInheritedTestMethodsTest/retainsStackTraceForInheritedTestMethods/build.gradle

    plugins {
        id 'java-library'
    }
    
    repositories {
        mavenCentral()
    }
    
    testing.suites.test {
        useJUnitJupiter()
        targets.test.testTask.configure {
            testLogging {
                exceptionFormat = TestExceptionFormat.FULL
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 314 bytes
    - Viewed (0)
Back to top