Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 55 for failureHasCause (0.15 sec)

  1. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/locking/UsingLockingOnNonProjectConfigurationsIntegrationTest.groovy

        }
        configurations.classpath {
            resolutionStrategy.activateDependencyLocking()
        }
    }
    """
    
            when:
            fails 'buildEnvironment'
    
            then:
            failureHasCause("Locking strict mode:")
        }
    
        def 'locks build script classpath combined with plugins (initial unique: #unique)'() {
            given:
            addPlugin()
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-10-10 21:10
    - 11.4K bytes
    - Viewed (0)
  2. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileIntegrationTest.groovy

                }
            '''
            file('src/main/java/Square.java') << 'public class Square extends Rectangle {}'
    
            when:
            fails 'compileJava'
    
            then:
            failureHasCause("Cannot specify -sourcepath or --source-path via `CompileOptions.compilerArgs`. Use the `CompileOptions.sourcepath` property instead.")
        }
    
        def "fails when processorpath is set on compilerArgs"() {
    Registered: 2024-06-12 18:38
    - Last Modified: 2024-05-31 20:20
    - 39.6K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ConfigurationRolesIntegrationTest.groovy

                configurations {
                    $first("foo")
                    $second("foo")
                }
            """
    
            when:
            fails "help"
    
            then:
            failureHasCause("Cannot add a configuration with name 'foo' as a configuration with that name already exists.")
    
            where:
            first             | second
            "consumable"      | "resolvable"
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-12-15 15:38
    - 15.1K bytes
    - Viewed (0)
  4. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/WatchedDirectoriesFileSystemWatchingIntegrationTest.groovy

            settingsFile << """
                throw new RuntimeException("Boom")
            """
    
            when:
            withWatchFs().fails("help")
            then:
            failureHasCause("Boom")
        }
    
        def "detects when a task removes the build directory #buildDir"() {
            buildFile << """
                apply plugin: 'base'
    
                project.buildDir = file("${buildDir}")
    
    Registered: 2024-06-12 18:38
    - Last Modified: 2024-04-03 13:50
    - 15.2K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskParametersIntegrationTest.groovy

            } else {
                failureHasCause("Failed to calculate the value of task ':failingTask' property 'stringInput'.")
            }
            failureHasCause("BOOM")
        }
    
        @ToBeFixedForConfigurationCache
        def "input and output properties are not evaluated too often"() {
            buildFile << """
    Registered: 2024-06-12 18:38
    - Last Modified: 2024-05-28 09:03
    - 36.3K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/AbstractIntegrationSpec.groovy

            assertHasResult()
            tasks.each {
                result.assertTaskExecuted(it)
            }
        }
    
        protected void failureHasCause(String cause) {
            failure.assertHasCause(cause)
        }
    
        protected void failureHasCause(Pattern pattern) {
            failure.assertThatCause(matchesRegexp(pattern))
        }
    
        protected void failureDescriptionStartsWith(String description) {
    Registered: 2024-06-12 18:38
    - Last Modified: 2024-06-11 09:07
    - 32.9K bytes
    - Viewed (0)
  7. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/ComponentModelIntegrationTest.groovy

                        }
                    }
                }
    
                apply type: ComponentSpecContainerRules
            """
    
            when:
            fails "tasks"
            then:
            failureHasCause "Attempt to modify a read only view of model element 'components' of type '$projectionType' given to rule ComponentSpecContainerRules#addComponentTasks(TaskContainer, $projectionType)"
    
            where:
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-10-11 12:16
    - 20.4K bytes
    - Viewed (0)
  8. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomComponentIntegrationTest.groovy

                            binaries {}
                        }
                    }
                }
            """
    
            expect:
            fails "model"
            failureHasCause "Could not find method binaries()"
        }
    
        def "can define subtype of `ApplicationBinarySpec`"() {
            buildFile << """
    @Managed
    interface TheApp extends ApplicationSpec {}
    @Managed
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-10-11 12:16
    - 25.1K bytes
    - Viewed (0)
  9. testing/integ-test/src/integTest/groovy/org/gradle/integtests/SyncTaskIntegrationTest.groovy

                "Use a Copy task with Task.doNotTrackState() instead. " +
                documentationRegistry.getDocumentationRecommendationFor("information", "incremental_build", "sec:disable-state-tracking"))
            failureHasCause("Failed to create MD5 hash for file '${unreadableOutput}' as it does not exist.")
    
            cleanup:
            unreadableOutput.makeReadable()
        }
    
        @Issue("https://github.com/gradle/gradle/issues/9586")
    Registered: 2024-06-12 18:38
    - Last Modified: 2024-04-04 07:21
    - 18.9K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyPermissionsIntegrationTest.groovy

                }
            """
    
            when:
            executer.withStackTraceChecksDisabled()
            runAndFail "copy"
            then:
            expectUnreadableCopyDestinationFailure()
            failureHasCause(expectedError(unreadableOutput))
    
            cleanup:
            unreadableOutput.makeReadable()
    
            where:
            type        | create              | expectedError
    Registered: 2024-06-12 18:38
    - Last Modified: 2024-04-03 15:21
    - 20K bytes
    - Viewed (0)
Back to top