- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for buildAndFail (0.07 seconds)
-
build-logic/buildquality/src/test/kotlin/gradlebuild/testcleanup/TestFilesCleanupServiceTest.kt
} } @Test fun `fail build if leftover file found and test passes`() { val result = run(":successful-test-with-leftover:test").buildAndFail() assertEquals(TaskOutcome.SUCCESS, result.task(":successful-test-with-leftover:test")!!.outcome) assertEquals(2, StringUtils.countMatches(result.output, "Found non-empty test files dir"))Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Feb 10 00:16:44 GMT 2026 - 11.6K bytes - Click Count (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTaskIntegrationTest.kt
fun assertHasMisorderedChanges(changes: List<Change>? = null) { val standardError = StringWriter() run(":verifyAcceptedApiChangesOrdering") .forwardStdError(standardError) .buildAndFail() val files = listOf(firstAcceptedApiChangesFile, secondAcceptedApiChangesFile) val cleanupHint = "To automatically alphabetize these changes run: './gradlew :architecture-test:sortAcceptedApiChanges'"
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Nov 29 14:03:44 GMT 2024 - 6K bytes - Click Count (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTaskIntegrationTest.kt
} ] } """.trimIndent() ) val initialVerifyResult = run(":verifyAcceptedApiChangesOrdering").buildAndFail() assertEquals(TaskOutcome.FAILED, initialVerifyResult.task(":verifyAcceptedApiChangesOrdering")!!.outcome) val sortingResult = run(":sortAcceptedApiChanges").build()Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Mar 14 02:17:00 GMT 2025 - 9.7K bytes - Click Count (0)