Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for failureDescriptionStartsWith (0.54 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/SnapshotTaskInputsOperationIntegrationTest.groovy

                    input1 = 'foo'
                    input2 = 'bar'
                }
            """
    
            when:
            fails('customTask', '--build-cache')
    
            then:
            failureDescriptionStartsWith("Some problems were found with the configuration of task ':customTask' (type 'CustomTask').")
            failureDescriptionContains(implementationUnknown {
                implementationOfTask(':customTask')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  2. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/JavaToolchainBuildOperationsIntegrationTest.groovy

                public class Foo extends Oops {}
            """
    
            when:
            withInstallations(jdkMetadata).fails(task)
            def events = toolchainEvents(task)
            then:
            failureDescriptionStartsWith("Execution failed for task '${task}'.")
            failureHasCause("Compilation failed; see the compiler error output for details.")
            result.assertHasErrorOutput("Foo.java:2: error: cannot find symbol")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 06:42:07 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  3. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileToolchainIntegrationTest.groovy

            }
    
            when:
            withInstallations(currentJdk, otherJdk).runAndFail(":compileJava")
    
            then:
            failureDescriptionStartsWith("Execution failed for task ':compileJava'.")
            failureHasCause("Toolchain from `${errorFor}` property on `ForkOptions` does not match toolchain from `javaCompiler` property")
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheEncryptionIntegrationTest.groovy

            assert keyStoreDir.mkdir()
            fs.chmod(keyStoreDir, 0444)
    
            when:
            fails(*(["help", "--configuration-cache"] + encryptionOptions))
    
            then:
            failureDescriptionStartsWith "Could not open Gradle Configuration Cache keystore (${keyStoreDir}"
    
            cleanup:
            fs.chmod(keyStoreDir, 0666)
        }
    
        void runWithEncryption(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 13K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/DependencyManagementResultsAsInputsIntegrationTest.groovy

                    doLast {
                        println(setPropertyInput.get())
                    }
                }
            """
    
            when:
            fails "verify"
    
            then:
            failureDescriptionStartsWith("Some problems were found with the configuration of task ':verify' (type 'TaskWithInput').")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 19:04:04 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/AbstractIntegrationSpec.groovy

            failure.assertHasCause(cause)
        }
    
        protected void failureHasCause(Pattern pattern) {
            failure.assertThatCause(matchesRegexp(pattern))
        }
    
        protected void failureDescriptionStartsWith(String description) {
            failure.assertThatDescription(containsNormalizedString(description))
        }
    
        protected void failureDescriptionContains(String description) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:07:53 UTC 2024
    - 32.9K bytes
    - Viewed (0)
Back to top