Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for assertTestsExecuted (0.31 sec)

  1. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGFilteringIntegrationTest.groovy

            result.assertTestClassesExecuted('FooTest', 'BarTest')
            result.testClass('FooTest').assertTestCount(1, 0, 0)
            result.testClass('FooTest').assertTestsExecuted('pass')
            result.testClass('BarTest').assertTestCount(1, 0, 0)
            result.testClass('BarTest').assertTestsExecuted('pass')
        }
    
        @Issue("GRADLE-3112")
        def "suites can be filtered from the build file"() {
            given:
            theUsualFiles()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/JUnit4TestFilteringSamplesIntegrationTest.groovy

            def result = new DefaultTestExecutionResult(sample.dir)
            result.assertTestClassesExecuted("SomeIntegTest", "SomeOtherTest")
            result.testClass("SomeIntegTest").assertTestsExecuted("test1", "test2")
            result.testClass("SomeOtherTest").assertTestsExecuted("quickUiCheck")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/SampleTestNGIntegrationTest.groovy

            result.testClass('org.gradle.OkTest').assertTestsExecuted('passingTest', 'expectedFailTest')
            result.testClass('org.gradle.OkTest').assertTestPassed('passingTest')
            result.testClass('org.gradle.OkTest').assertTestPassed('expectedFailTest')
            result.testClass('org.gradle.ConcreteTest').assertTestsExecuted('ok', 'alsoOk')
            result.testClass('org.gradle.ConcreteTest').assertTestPassed('ok')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGParallelSuiteIntegrationTest.groovy

            when:
            run("test")
    
            then:
            def result = new DefaultTestExecutionResult(testDirectory)
            result.testClass("Foo0Test").assertTestsExecuted("test")
            result.testClass("Foo199Test").assertTestsExecuted("test")
        }
    
        @Issue("https://github.com/gradle/gradle/issues/4457")
        def "can persist configurations in xml"() {
            given:
            createTests(3, 3)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/AbstractConfigurationCacheIntegrationTest.groovy

            fails(ENABLE_CLI_OPT, LOG_REPORT_LINK_AS_WARNING, *tasks)
        }
    
        protected void assertTestsExecuted(String testClass, String... testNames) {
            new DefaultTestExecutionResult(testDirectory)
                .testClass(testClass)
                .assertTestsExecuted(testNames)
        }
    
        protected static String removeVfsLogOutput(String normalizedOutput) {
            normalizedOutput
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. testing/internal-testing/src/main/groovy/org/gradle/integtests/fixtures/TestClassExecutionResult.java

         */
        TestClassExecutionResult assertTestsExecuted(String... testNames);
    
        /**
         * Asserts that the given tests (and only the given tests) were executed for the given test class.
         *
         * This supports JUnit5 parameterized tests where the test name and display name may not match.
         */
        TestClassExecutionResult assertTestsExecuted(TestCase... testCases);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheGroovyIntegrationTest.groovy

            result.assertTasksExecuted(*expectedTasks)
    
            and:
            classFile.isFile()
            testClassFile.isFile()
            testResults.isDirectory()
    
            and:
            assertTestsExecuted("ThingTest", "ok")
    
            when:
            configurationCacheRun "clean"
    
            and:
            configurationCacheRun "build"
    
            then:
            configurationCache.assertStateLoaded()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  8. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitAbortedTestClassIntegrationTest.groovy

            result.assertTestClassesExecuted('org.gradle.SkippingRuleTests')
            result.testClass('org.gradle.SkippingRuleTests')
                .assertTestCount(3, 0, 0)
                .assertTestsExecuted('a', 'c')
                .assertTestsSkipped('b')
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitAssumptionsIntegrationTest.groovy

    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnit3FilteringIntegrationTest.groovy

            then:
            def result = new DefaultTestExecutionResult(testDirectory)
            result.assertTestClassesExecuted("FooTest")
            result.testClass("FooTest").assertTestsExecuted("testPass")
    
            when:
            fails("test", "--tests", "FooTest.unknown")
    
            then:
            failure.assertHasCause("No tests found for given includes: [FooTest.unknown]")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top