Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for assertTestsExecuted (0.29 sec)

  1. testing/internal-testing/src/main/groovy/org/gradle/integtests/fixtures/DefaultTestExecutionResult.groovy

            }
    
            TestClassExecutionResult assertTestsExecuted(String... testNames) {
                testClassResults*.assertTestsExecuted(removeAllParentheses(testNames))
                this
            }
    
            @Override
            TestClassExecutionResult assertTestsExecuted(TestCase... testCases) {
                testClassResults*.assertTestsExecuted(testCases)
                this
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  2. 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)
  3. testing/internal-testing/src/main/groovy/org/gradle/integtests/fixtures/JUnitTestClassExecutionResult.groovy

         *
         * This method exists for compatibility purposes, but is equivalent to {@link #assertTestsExecuted(java.lang.String[])}.
         */
        @Override
        TestClassExecutionResult assertTestsExecuted(TestCase... testCases) {
            return assertTestsExecuted(testCases.collect { it.displayName } as String[])
        }
    
        TestClassExecutionResult assertTestCount(int tests, int failures, int errors) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. testing/internal-testing/src/main/groovy/org/gradle/integtests/fixtures/HtmlTestExecutionResult.groovy

            }
    
            TestClassExecutionResult assertTestsExecuted(String... testNames) {
                return assertTestsExecuted(testNames.collect { testCase(it) } as TestCase[])
            }
    
            @Override
            TestClassExecutionResult assertTestsExecuted(TestCase... testCases) {
                def executedAndNotSkipped = testsExecuted - testsSkipped
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/TestNGExecutionResult.groovy

        }
    
        TestClassExecutionResult assertTestsExecuted(String... testNames) {
            def actualTestMethods = findTestMethods().keySet()
            assert actualTestMethods == testNames as Set
            this
        }
    
        @Override
        TestClassExecutionResult assertTestsExecuted(TestCase ... testCases) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheJavaIntegrationTest.groovy

            def testClassFile = file("build/classes/java/test/ThingTest.class")
            testClassFile.isFile()
            def testResults = file("build/test-results/test")
            testResults.isDirectory()
            assertTestsExecuted("ThingTest", "ok")
    
            when:
            configurationCacheRun "build"
    
            then:
            assertStateLoaded()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  9. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/junit/result/JUnitXmlResultWriterSpec.groovy

                .assertTestCount(4, 1, 1, 0)
                .assertTestFailed("some failing test", equalTo('failure message'))
                .assertTestsSkipped("some skipped test")
                .assertTestsExecuted("some test", "some test two", "some failing test")
                .assertStdout(equalTo("""1st output message
    2nd output message
    """))
                .assertStderr(equalTo("err"))
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 18:51:05 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  10. testing/integ-test/src/integTest/groovy/org/gradle/integtests/ProjectLayoutIntegrationTest.groovy

            file('build').assertDoesNotExist()
    
            def results = new DefaultTestExecutionResult(file(), 'target')
            results.assertTestClassesExecuted('PersonTest')
            results.testClass('PersonTest').assertTestsExecuted('ok')
        }
    
        @Test
        void projectPathsResolvedRelativeToRoot() {
            file('relative/a/build.gradle') << """
                task someTask
            """
            file('settings.gradle') << '''
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top