Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 236 for assertHasDescription (0.22 sec)

  1. platforms/software/ivy/src/integTest/groovy/org/gradle/api/publish/ivy/IvyPublishDescriptorCustomizationIntegTest.groovy

                                asNode().foo = "3"
                            }
                        }
                    }
                }
            """
            fails 'publish'
    
            then:
            failure.assertHasDescription("Execution failed for task ':generateDescriptorFileForIvyPublication'.")
            failure.assertHasFileName("Build file '${buildFile}'")
            failure.assertHasLineNumber(23)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/testFixtures/groovy/org/gradle/language/swift/AbstractSwiftComponentIntegrationTest.groovy

                task verifyBinariesSwiftVersion {}
            """
            settingsFile << "rootProject.name = 'swift-project'"
    
            expect:
            fails "verifyBinariesSwiftVersion"
            failure.assertHasDescription("A problem occurred configuring root project 'swift-project'.")
            failure.assertThatCause(CoreMatchers.containsString("property 'sourceCompatibility' is final and cannot be changed any further."))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  3. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginVersionIntegrationTest.groovy

            file("build/reports/pmd/test.xml").exists()
        }
    
        def "analyze bad code"() {
            badCode()
    
            expect:
            fails("check")
            failure.assertHasDescription("Execution failed for task ':pmdTest'.")
            failure.assertThatCause(containsString("2 PMD rule violations were found. See the report at:"))
            failure.assertHasResolutions(SCAN)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  4. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/IncrementalScalaCompileIntegrationTest.groovy

            when: // Update interface, compile should fail
            file('src/main/scala/IPerson.scala').assertIsFile().copyFrom(file('NewIPerson.scala'))
    
            then:
            runAndFail("classes").assertHasDescription("Execution failed for task ':compileScala'.")
        }
    
        @Issue("gradle/gradle#13392")
        def restoresClassesOnCompilationFailure() {
            given:
            run("classes")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  5. platforms/software/version-control/src/integTest/groovy/org/gradle/vcs/internal/MappingSourceDependencyIntegrationTest.groovy

                        all { details ->
                            foo()
                        }
                    }
                }
            """
            expect:
            fails('assemble')
            failure.assertHasDescription("Could not determine the dependencies of task ':compileJava'.")
            failure.assertHasFileName("Settings file '$settingsFile.path'")
            failure.assertHasLineNumber(5)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  6. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/RuntimePluginValidationTrait.groovy

            switch (expectedFailures.size()) {
                case 0:
                    break
                case 1:
                    failure.assertHasDescription("A problem was found with the configuration of task ':run' (type 'MyTask').")
                    break
                default:
                    failure.assertHasDescription("Some problems were found with the configuration of task ':run' (type 'MyTask').")
                    break
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 14:30:05 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskTimeoutIntegrationTest.groovy

                    }
                    timeout = Duration.ofMillis(-1)
                }
                """
    
            expect:
            2.times {
                fails "broken"
                failure.assertHasDescription("Execution failed for task ':broken'.")
                failure.assertHasCause("Timeout of task ':broken' must be positive, but was -0.001S")
                result.assertNotOutput("Hello")
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/InitScriptErrorIntegrationTest.groovy

            initScript << """
        createTakk('do-stuff')
    """
            when:
            fails()
    
            then:
            failure.assertHasDescription("A problem occurred evaluating initialization script.")
                    .assertHasCause("Could not find method createTakk() for arguments [do-stuff] on build of type ${DefaultGradle.name}.")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 15:16:36 UTC 2019
    - 2.1K bytes
    - Viewed (0)
  9. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildDependencyCycleIntegrationTest.groovy

                            compositeSubstitute()
                        }
                    }
                }
            }
    
            when:
            resolveFails(":resolveArtifacts")
    
            then:
            failure.assertHasDescription("""Circular dependency between the following tasks:
    :buildB:compileJava
    \\--- :buildC:compileJava
         \\--- :buildB:compileJava (*)""")
        }
    
        def "indirect dependency cycle between included builds"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 01 20:36:42 UTC 2022
    - 12.1K bytes
    - Viewed (0)
  10. platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/enterprise/GradleEnterprisePluginBackgroundJobExecutorsIntegrationTest.groovy

                    }
                }
            """
    
            when:
            fails("check")
    
            then:
            failure.assertHasDescription("Background job failed!")
    
            when:
            fails("check")
    
            then:
            failure.assertHasDescription("Background job failed!")
        }
    
        def "background jobs can run in parallel with tasks on #numWorkers workers"(int numWorkers) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 29 16:27:53 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top