- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 42 for fail (4.56 sec)
-
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheFlowScopeIntegrationTest.groovy
when: 'task fails' buildFile ''' tasks.register('fail') { doLast { assert false } } ''' configurationCacheFails 'fail' then: 'flow action reacts to build failure' outputContains '(red)' configCache.assertStateStored() when: 'task from cache fails' configurationCacheFails 'fail'
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 11.5K bytes - Viewed (0) -
build-logic/buildquality/src/test/kotlin/gradlebuild/testcleanup/TestFilesCleanupServiceTest.kt
include(":successful-report") """.trimIndent() ) fun File.writeFlakyTest(fail: Boolean) { mkdirsAndWriteText( """ class FlakyTest { @org.junit.jupiter.api.Test public void test() { ${if (fail) "throw new IllegalStateException();" else ""} } } """.trimIndent()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jun 14 12:35:52 UTC 2023 - 10.6K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/DefaultFileCollectionFactoryTest.groovy
void visitDir(FileVisitDetails dirDetails) { Assert.fail() } @Override void visitFile(FileVisitDetails fileDetails) { Assert.fail() } @Override void visitCollection(FileCollectionInternal.Source source, Iterable<File> contents) { Assert.fail() } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 13.9K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/KotlinCompiler.kt
} } private const val indent = " " private enum class EmbeddedKotlinCompilerWarning { FAIL, WARN, DEBUG } private fun onCompilerWarningsFor(allWarningsAsErrors: Boolean) = if (allWarningsAsErrors) EmbeddedKotlinCompilerWarning.FAIL else EmbeddedKotlinCompilerWarning.WARN private class LoggingMessageCollector( val log: Logger,
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 31 08:46:17 UTC 2023 - 20.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/CredentialsProviderIntegrationTest.groovy
credentials.set(providers.credentials(PasswordCredentials, 'testCredentials')) } """ then: succeeds 'firstTask' } def "missing credentials will fail the build at configuration time when the task needing them is executed directly"() { given: buildFile << """ def firstTask = tasks.register('firstTask') { }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 11.6K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/UpgradedPropertiesChangesTest.kt
) } } @Test fun `should fail if some method was upgraded but it was not actually changed`() { checkBinaryCompatibleFailsWithoutReport( v1 = { withFile( "java/com/example/Task.java",
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 23 08:40:36 UTC 2024 - 20.2K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheValueSourceIntegrationTest.groovy
@Override String obtain() { if (Boolean.getBoolean("should.fail")) { throw new RuntimeException("Broken!") } return "not broken" } } providers.of(SometimesBrokenValueSource) {}.get() """) when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 20.6K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/EncryptionService.kt
*/ private fun <C : Closeable, T : Closeable> safeWrap(innerSupplier: () -> C, unsafeWrapper: (C) -> T): T { // fine if we fail here val innerCloseable = innerSupplier() val outerCloseable = try { // but if we fail here, we need to ensure we close // the inner closeable, or else it will leak unsafeWrapper(innerCloseable) } catch (e: Throwable) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:30 UTC 2024 - 11.9K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/fixtures/ToolingApiSpec.groovy
.setStandardError(new TeeOutputStream(error, System.err)) .get() throw new IllegalStateException("Expected build to fail but it did not.") } catch (BuildException t) { failure = OutputScrapingExecutionFailure.from(output.toString(), error.toString()) } failure } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 15.1K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/AbstractFileCollectionTest.groovy
File file2 = new File("f2") TestFileCollection collection = new TestFileCollection(file1, file2) expect: try { collection.getSingleFile() fail() } catch (IllegalStateException e) { assertThat(e.getMessage(), equalTo("Expected collection-display-name to contain exactly one file, however, it contains more than one file.")) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 13.3K bytes - Viewed (0)