Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for failedTest (0.71 sec)

  1. platforms/ide/tooling-api-builders/src/main/java/org/gradle/tooling/internal/provider/runner/TestExecutionResultEvaluator.java

                StringBuilder failedTestsMessage = new StringBuilder("Test failed.\n")
                    .append(INDENT).append("Failed tests:");
                for (FailedTest failedTest : failedTests) {
                    failedTestsMessage.append("\n").append(twoIndent()).append(failedTest.getDescription());
                }
                throw new TestExecutionException(failedTestsMessage.toString());
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 13:57:30 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/JUnit4RerunPreviousFailedTestIntegrationTest.groovy

                .testClass("ConditionalFailingTest_${indexOfTestToFail}").assertTestFailed('failedTest', CoreMatchers.anything())
        }
    
        void allTestsSucceed() {
            new DefaultTestExecutionResult(testDirectory).assertTestClassesExecuted(TEST_CLASSES as String[])
        }
    
        void remainTestsSucceed(def indexOfTestToFail) {
            def failedTest = "ConditionalFailingTest_${indexOfTestToFail}".toString()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/AbstractJvmFailFastIntegrationSpec.groovy

            then:
            testExecution.release(FAILED_RESOURCE)
            gradleHandle.waitForFailure()
            assert gradleHandle.standardOutput.matches(/(?s).*FailedTest.*failTest.*FAILED.*java.lang.RuntimeException at FailedTest.java.*/)
            assert !gradleHandle.standardOutput.contains('pkg.OtherTest')
        }
    
        @Requires(IntegTestPreconditions.NotParallelExecutor)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/fixture/JvmBlockingTestClassGenerator.groovy

                }
    
                test.$testFrameworkConfiguration
            """
        }
    
        void withFailingTest() {
            root.file('src/test/java/pkg/FailedTest.java') << """
                package pkg;
                $testFrameworkImports
                public class FailedTest {
                    @Test
                    public void failTest() {
                        ${server.callFromBuild("$FAILED_RESOURCE")}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/report/CompositeTestResults.java

            return successful.divide(runTests, 2, RoundingMode.DOWN).multiply(BigDecimal.valueOf(100)).intValue();
        }
    
        protected void failed(TestResult failedTest) {
            failures.add(failedTest);
            if (parent != null) {
                parent.failed(failedTest);
            }
        }
    
        protected void ignored(TestResult ignoredTest) {
            ignored.add(ignoredTest);
            if (parent != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  6. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGFailFastIntegrationTest.groovy

            gradleHandle.waitForFailure()
            def result = new DefaultTestExecutionResult(testDirectory)
            assert 1 == resourceForTest.keySet().count { result.testClassExists(it) && result.testClass(it).testFailed('failedTest', CoreMatchers.anything()) }
            assert 5 == resourceForTest.keySet().with {
                count { !result.testClassExists(it) } +
                    count { result.testClassExists(it) && result.testClass(it).testCount == 0 } +
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  7. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/logging/TestCountLogger.java

            totalTests += result.getTestCount();
            failedTests += result.getFailedTestCount();
            skippedTests += result.getSkippedTestCount();
            progressLogger.progress(summary());
        }
    
        private String summary() {
            StringBuilder builder = new StringBuilder();
            append(builder, totalTests, "test");
            builder.append(" completed");
            if (failedTests > 0) {
                builder.append(", ");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. maven-core/src/test/resources/apiv4-repo/junit/junit/4.13.1/junit-4.13.1.jar

    ulation.Orderer) throws org.junit.runner.manipulation.InvalidOrderingExcep; } junit/framework/TestFailure.class package junit.framework; public synchronized class TestFailure { protected Test fFailedTest; protected Throwable fThrownException; public void TestFailure(Test, Throwable); public Test failedTest(); public Throwable thrownException(); public String toString(); public String trace(); public String exceptionMessage(); public boolean isFailure(); } junit/framework/JUnit4TestAdapterCac$1.class...
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Dec 19 19:08:55 UTC 2023
    - 373.7K bytes
    - Viewed (0)
  9. platforms/enterprise/enterprise-plugin-performance/src/templates/project-with-source/Test.java

                System.err.println("Some test error  from ${testClassName}.testOne - " + i);
            }
            assertEquals(production.getProperty(), "value");
        }
    
        <% if(packageName.contains('1_') && binding.hasVariable("failedTests"))   {  %>
    
        @org.junit.Test
        public void testFailure() throws Exception {
            for (int i = 0; i < 500; i++) {
                System.out.println("Some test output from ${testClassName}.testFailure - " + i);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jul 17 10:38:06 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. platforms/enterprise/enterprise-plugin-performance/build.gradle.kts

        numberOfScriptPlugins = 30
        rootProjectTemplates = listOf("root")
        subProjectTemplates = listOf("project-with-source")
        templateArgs = mapOf(
            "fullTestLogging" to true,
            "failedTests" to true,
            "projectDependencies" to true,
            "manyPlugins" to true,
            "manyScripts" to true
        )
        daemonMemory = "4096m"
        maxWorkers = 4
        doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 23:14:25 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top