Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for afterSuite (0.12 sec)

  1. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/TestEventLoggerTest.groovy

            when:
            eventLogger.afterSuite(outerSuiteDescriptor, result)
            eventLogger.afterSuite(innerSuiteDescriptor, result)
            eventLogger.afterSuite(classDescriptor, result)
    
            then:
            textOutputFactory.toString().count("PASSED") == 3
    
            when:
            textOutputFactory.clear()
            eventLogger.afterSuite(rootDescriptor, result)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 14:45:02 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/TestCountLoggerTest.groovy

            TestDescriptor suite = suite()
    
            logger.beforeSuite(rootSuite)
    
            when:
            logger.beforeSuite(suite)
            logger.afterSuite(suite, result())
    
            then:
            0 * progressLogger._
    
            when:
            logger.afterSuite(rootSuite, result())
    
            then:
            1 * progressLogger.completed()
        }
    
    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/documentation/docs/src/snippets/testing/testng-java-passing/groovy/src/test/java/org/gradle/SuiteCleanup.java

    package org.gradle;
    
    import org.testng.annotations.AfterSuite;
    
    public class SuiteCleanup {
        @AfterSuite
        public void cleanupSuite() {
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 149 bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/JUnit4FilteringIntegrationTest.groovy

        def 'filter as many classes as possible before sending to worker process'() {
            given:
            // We can know which class is sent to TestClassProcessor via afterSuite() hook method
            // because JUnitTestClassProcessor will emit a test suite event for each loaded class.
            // However, JUnitPlatformTestClassProcessor won't emit such event unless the class is executed.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  5. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/results/TestListenerAdapter.java

            }
        }
    
        @Override
        public void completed(TestDescriptorInternal test, TestResult result, TestCompleteEvent completeEvent) {
            if (test.isComposite()) {
                testListener.afterSuite(test, result);
            } else {
                testListener.afterTest(test, result);
            }
        }
    
        @Override
        public void output(TestDescriptorInternal test, TestOutputEvent event) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  6. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/junit/result/TestReportDataCollectorSpec.groovy

            collector.beforeSuite(root)
            collector.beforeSuite(testWorker)
            collector.afterSuite(testWorker, new DefaultTestResult(FAILURE, 50, 450, 2, 1, 1, [org.gradle.api.tasks.testing.TestFailure.fromTestFrameworkFailure(new RuntimeException("Boo!"))]))
            collector.afterSuite(root, new DefaultTestResult(FAILURE, 0, 500, 2, 1, 1, []))
    
            then:
            results.size() == 1
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/AbstractJUnit4TestListenerIntegrationTest.groovy

                }
                class TestListenerImpl implements TestListener {
                    void beforeSuite(TestDescriptor suite) { println "START [\$suite] [\$suite.name]" }
                    void afterSuite(TestDescriptor suite, TestResult result) { println "FINISH [\$suite] [\$suite.name]" }
                    void beforeTest(TestDescriptor test) { println "START [\$test] [\$test.name]" }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/docs/dsl/org.gradle.api.tasks.testing.AbstractTestTask.xml

                </tr>
                <tr>
                    <td>removeTestOutputListener</td>
                </tr>
                <tr>
                    <td>beforeSuite</td>
                </tr>
                <tr>
                    <td>afterSuite</td>
                </tr>
                <tr>
                    <td>beforeTest</td>
                </tr>
                <tr>
                    <td>afterTest</td>
                </tr>
                <tr>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. build-logic/cleanup/src/main/kotlin/gradlebuild/cleanup/services/DaemonTracker.kt

                            // not trigger a warning
                            daemonPids += pid
                        }
                    }
                }
    
                override fun afterSuite(suite: TestDescriptor, result: TestResult) {
                    if (suite.parent == null) {
                        forEachJavaProcess { pid, _ ->
                            if (daemonPids.add(pid)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 08 12:45:57 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/TestEventsIntegrationTest.groovy

            """
            buildFile """
                def testListener = new TestListener() {
                    void beforeSuite(TestDescriptor suite) {}
                    void afterSuite(TestDescriptor suite, TestResult result) {}
                    void beforeTest(TestDescriptor testDescriptor) {}
                    void afterTest(TestDescriptor testDescriptor, TestResult result) {}
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.3K bytes
    - Viewed (0)
Back to top