Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for assertThatDescription (0.51 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/ErrorsOnStdoutScrapingExecutionFailure.java

            return this;
        }
    
        @Override
        public ExecutionFailure assertThatDescription(Matcher<? super String> matcher) {
            delegate.assertThatDescription(matcher);
            return this;
        }
    
        @Override
        public ExecutionFailure assertThatAllDescriptions(Matcher<? super String> matcher) {
            delegate.assertThatDescription(matcher);
            return this;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 09:21:25 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/use/PostPluginResolutionFailuresIntegrationSpec.groovy

            pluginBuilder.publishAs(GROUP, ARTIFACT, VERSION, pluginRepo, executer).allowAll()
    
            buildScript applyPlugin()
    
            expect:
            fails("verify")
            failure.assertThatDescription(startsWith("An exception occurred applying plugin request [id: 'org.my.myplugin', version: '1.0']"))
            failure.assertHasLineNumber(3)
            failure.assertHasCause("Could not create plugin of type 'TestPlugin'.")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  3. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/use/CorePluginUseIntegrationSpec.groovy

                plugins {
                    id "java"
                    id "java"
                }
            """
    
            when:
            fails "help"
    
            then:
            failure.assertThatDescription(startsWith("Plugin with id 'java' was already requested at line 3"))
            failure.assertHasFileName("Build file '$buildFile.absolutePath'")
            failure.assertHasLineNumber(4)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  4. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/use/NonDeclarativePluginUseIntegrationSpec.groovy

            buildScript """
                $USE
            """
    
            then:
            fails "tasks"
    
            and:
            failure.assertThatDescription(startsWith("Plugin [id: 'org.myplugin', version: '1.0'] was not found in any of the following sources"))
            failure.assertThatDescription(containsString("""
                - Plugin Repositories (could not resolve plugin artifact 'org.myplugin:org.myplugin.gradle.plugin:1.0')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 9K bytes
    - Viewed (0)
  5. testing/integ-test/src/integTest/groovy/org/gradle/integtests/BuildAggregationIntegrationTest.groovy

                }
    '''
    
            then:
            fails "build"
    
            and:
            failure.assertHasFileName("Build file '${other}'")
            failure.assertHasLineNumber(2)
            failure.assertThatDescription(CoreMatchers.startsWith("A problem occurred evaluating project ':other'"))
            failure.assertHasCause('broken')
        }
    
        def reportsBuildSrcFailure() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperProjectIntegrationTest.groovy

            given:
            prepareWrapper()
    
            when:
            def failure = wrapperExecuter.withTasks('unknown').runWithFailure()
    
            then:
            failure.assertThatDescription(CoreMatchers.startsWith("Task 'unknown' not found in root project"))
        }
    
        @Issue("https://github.com/gradle/gradle/issues/16055")
        def "can run in project with a \$ in the path"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/OutputScrapingExecutionFailure.java

            }
            return this;
        }
    
        @Override
        public ExecutionFailure assertHasDescription(String context) {
            assertThatDescription(startsWith(context));
            return this;
        }
    
        @Override
        public ExecutionFailure assertThatDescription(Matcher<? super String> matcher) {
            assertHasFailure(matcher, f -> {
            });
            return this;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 09:21:25 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  8. testing/integ-test/src/integTest/groovy/org/gradle/integtests/ProjectLoadingIntegrationTest.java

            ExecutionFailure result = inTestDirectory().withTasks("test").runWithFailure();
            result.assertThatDescription(startsWith("Multiple projects in this build have project directory"));
    
            result = usingProjectDir(getTestDirectory()).withTasks("test").runWithFailure();
            result.assertThatDescription(startsWith("Multiple projects in this build have project directory"));
    
            executer.expectDeprecationWarnings(1);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 18K bytes
    - Viewed (0)
  9. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/taskgrouping/AbstractConsoleBuildResultFunctionalTest.groovy

            fails("broken")
    
            and:
            // Ensure the failure is a location that the fixtures can see
            if (level == LogLevel.DEBUG) {
                failure.assertThatDescription(containsString("Execution failed for task ':broken'"))
            } else {
                failure.assertHasDescription("Execution failed for task ':broken'")
            }
            failure.assertHasCause("broken")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/ExecutionFailure.java

         *
         * <p>Error messages are normalized to use new-line char as line separator.
         */
        ExecutionFailure assertThatDescription(Matcher<? super String> matcher);
    
        /**
         * Asserts that there all failures match the given description (ie the bit after '* What went wrong').
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 09:21:25 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top