- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 29 for assertTestFailed (0.5 sec)
-
platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitTestFailureIntegrationTest.groovy
result.testClass('org.gradle.BrokenAfterClass').assertTestFailed(afterClassErrorTestName, equalTo(failureAssertionError('failed'))) result.testClass('org.gradle.BrokenBefore').assertTestFailed('ok', equalTo(failureAssertionError('failed')))
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 20:52:40 UTC 2023 - 18K bytes - Viewed (0) -
platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/xctest/SwiftXCTestErrorHandlingIntegrationTest.groovy
fails(':app:test') and: failure.assertHasCause("There were failing tests.") def testFailure = testExecutionResult.testClass("Gradle Test Run :app:xcTest") testFailure.assertTestFailed(EXECUTION_FAILURE, containsText("A problem occurred starting process")) } @ToBeFixedForConfigurationCache def "fails when application cannot load shared library at runtime"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 5.9K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/integTest/groovy/org/gradle/internal/serialize/ExceptionPlaceholderIntegrationTest.groovy
.assertTestFailed("allCausesShouldBeCaptured", containsString("oh noes (2 failures)")) result.testClass("example.Issue9487Test") .assertTestFailed("allCausesShouldBeCaptured", containsString("java.lang.AssertionError: error 1")) result.testClass("example.Issue9487Test") .assertTestFailed("allCausesShouldBeCaptured",
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Mar 06 06:58:24 UTC 2024 - 8K bytes - Viewed (0) -
platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGXmlResultAndHtmlReportIntegrationTest.groovy
) .assertTestFailed("p1[1](3, 4)", anything()) .assertTestFailed("p3[0]", containsString("Parameter 2 of iteration 1 of method 'p3' toString() method threw exception")) .assertTestFailed("p3[1]", containsString("Parameter 2 of iteration 2 of method 'p3' toString() method threw exception")) .assertTestFailed("p4[1](2, \">…Ú)", anything())
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 25 21:27:42 UTC 2023 - 15.1K bytes - Viewed (0) -
testing/internal-testing/src/main/groovy/org/gradle/integtests/fixtures/DefaultTestExecutionResult.groovy
} @Override TestClassExecutionResult assertTestFailed(String name, String displayName, Matcher<? super String>... messageMatchers) { testClassResults*.assertTestFailed(removeParentheses(name), removeParentheses(displayName), messageMatchers) this } TestClassExecutionResult assertTestFailed(String name, Matcher<? super String>... messageMatchers) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 10.5K bytes - Viewed (0) -
testing/internal-testing/src/main/groovy/org/gradle/integtests/fixtures/TestClassExecutionResult.java
TestClassExecutionResult assertTestPassed(String name); /** * Asserts that the given test failed. */ TestClassExecutionResult assertTestFailed(String name, String displayName, Matcher<? super String>... messageMatchers); TestClassExecutionResult assertTestFailed(String name, Matcher<? super String>... messageMatchers); TestClassExecutionResult assertTestFailedIgnoreMessages(String name); /** *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 4.1K bytes - Viewed (0) -
platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/AbstractJvmFailFastIntegrationSpec.groovy
testExecution.release(OTHER_RESOURCE) gradleHandle.waitForFailure() def result = new DefaultTestExecutionResult(testDirectory) result.testClass('pkg.FailedTest').assertTestFailed('failTest', CoreMatchers.anything()) result.testClass('pkg.OtherTest').assertTestPassed('passingTest') where: description | taskList | buildConfig
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 20:52:40 UTC 2023 - 7.7K bytes - Viewed (0) -
platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGSuiteInitialisationIntegrationTest.groovy
} """ expect: fails("test") def result = new DefaultTestExecutionResult(testDirectory) result.testClassStartsWith("Gradle Test Executor").assertTestFailed(EXECUTION_FAILURE, startsWith("org.gradle.api.internal.tasks.testing.TestSuiteExecutionException")) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 20:52:40 UTC 2023 - 1.7K bytes - Viewed (0) -
platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/jupiter/JUnitJupiterTestExecutionIntegrationTest.groovy
} @Override TestClassExecutionResult assertFailedToExecute(TestExecutionResult testResult, String testClassName) { return testResult.testClassStartsWith('Gradle Test Executor') .assertTestFailed("failed to execute tests", containsString("Could not execute test class '${testClassName}'")) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 20:52:40 UTC 2023 - 1.7K bytes - Viewed (0) -
platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/platform/JUnitPlatformIntegrationTest.groovy
assertTestPassed("passingTest") assertTestFailed("testWithUnserializableException", containsString("TestFailureSerializationException: An exception of type PoisonTest\$UnserializableException was thrown by the test, but Gradle was unable to recreate the exception in the build process")) assertTestFailed("normalFailingTest", containsString("AssertionError")) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 20:52:40 UTC 2023 - 17.2K bytes - Viewed (0)