Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for testLogging (0.18 sec)

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

     */
    
    package org.gradle.api.tasks.testing.logging;
    
    import java.util.Set;
    
    /**
     * Options that determine which test events get logged, and at which detail.
     */
    public interface TestLogging {
        /**
         * Returns the events to be logged.
         *
         * @return the events to be logged
         */
        Set<TestLogEvent> getEvents();
    
        /**
         * Sets the events to be logged.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  2. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/FullExceptionFormatterTest.groovy

    import org.gradle.api.tasks.testing.logging.TestLogging
    import org.gradle.api.tasks.testing.logging.TestStackTraceFilter
    import org.gradle.internal.serialize.PlaceholderException
    import spock.lang.Specification
    
    class FullExceptionFormatterTest extends Specification {
        def testDescriptor = new SimpleTestDescriptor()
        def testLogging = Mock(TestLogging)
        def formatter = new FullExceptionFormatter(testLogging)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. 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)
  4. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/shared-configuration.kt

        if (project.hasProperty("org.gradle.integtest.debug")) {
            systemProperties["org.gradle.integtest.debug"] = "true"
            testLogging.showStandardStreams = true
        }
        // TODO Move magic property out
        if (project.hasProperty("org.gradle.integtest.verbose")) {
            testLogging.showStandardStreams = true
        }
        // TODO Move magic property out
        if (project.hasProperty("org.gradle.integtest.launcher.debug")) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 23:14:25 UTC 2024
    - 12K bytes
    - Viewed (0)
  5. subprojects/build-events/src/integTest/groovy/org/gradle/build/event/BuildEventsIntegrationTest.groovy

            file("build.gradle") << """
                plugins { id 'groovy-gradle-plugin' }
                repositories { mavenCentral() }
                dependencies { testImplementation("junit:junit:4.13") }
                test.testLogging {
                    showStandardStreams = true
                    showExceptions = true
                }
            """
            def plugin = file('src/main/groovy/my-plugin.gradle')
            loggingListener(plugin)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  6. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/platform/JUnitPlatformEnvironmentIntegrationTest.groovy

                    systemProperties.testSysProperty = 'value'
                    systemProperties.projectDir = projectDir
                    environment.TEST_ENV_VAR = 'value'
                    testLogging.showStandardStreams = true
                }
            """
        }
    
        def "should prompt user to add dependencies when they are not in test runtime classpath"() {
            given:
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitTestExecutionIntegrationTest.groovy

                ${mavenCentralRepository()}
                dependencies {
                    ${testFrameworkDependencies}
                }
                test {
                    ${configureTestFramework}
                    testLogging {
                        events "passed", "skipped", "failed"
                    }
                }
            """.stripIndent()
    
            and:
            file("src/test/java/FirstTest.java") << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/docs/userguide/native/swift_testing.adoc

    Note that, by default, both task type always executes every test that it detects, irrespective of this setting.
    
    `testLogging` - default: not set::
    This property represents a set of options that control which test events are logged and at what level.
    You can also configure other logging behavior via this property.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  9. build-logic/performance-testing/src/main/kotlin/gradlebuild/performance/PerformanceTestPlugin.kt

                jvmArgs("-Xmx5g", "-XX:+HeapDumpOnOutOfMemoryError")
                if (project.performanceTestVerbose.isPresent) {
                    testLogging.showStandardStreams = true
                }
            }
            performanceTest.configure(configure)
    
            val testResultsZipTask = project.testResultsZipTaskFor(performanceTest)
            performanceTest.configure {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 06:42:07 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm/src/main/java/org/gradle/api/tasks/testing/Test.java

     *
     *   // explicitly include or exclude tests
     *   include 'org/foo/**'
     *   exclude 'org/boo/**'
     *
     *   // show standard out and standard error of the test JVM(s) on the console
     *   testLogging.showStandardStreams = true
     *
     *   // set heap size for the test JVM(s)
     *   minHeapSize = "128m"
     *   maxHeapSize = "512m"
     *
     *   // set JVM arguments for the test JVM(s)
     *   jvmArgs '-XX:MaxPermSize=256m'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 42.6K bytes
    - Viewed (0)
Back to top