Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for assertTaskNotExecuted (0.34 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/initialization/buildsrc/BuildSrcTaskExecutionIntegrationTest.groovy

                result.assertTaskExecuted(":buildSrc:thing")
                result.assertTaskNotExecuted(":buildSrc:something")
            }
    
            2.times {
                run("-x", ":buildSrc:jar")
                result.assertTaskNotExecuted(":buildSrc:compileJava")
                result.assertTaskNotExecuted(":buildSrc:jar")
            }
        }
    
        @Issue("https://github.com/gradle/gradle/issues/23885")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r61/TestLauncherCrossVersionSpec.groovy

            assertTaskNotExecuted(":test")
            assertTaskNotExecuted(":secondTest")
        }
    
        def "can target specific test task and classes"() {
            when:
            launchTests { TestLauncher launcher ->
                launcher.withTaskAndTestClasses(':secondTest',["example.MyTest2"])
            }
            then:
            assertTaskNotExecuted(":test")
            assertTaskExecuted(":secondTest")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. platforms/jvm/plugins-test-report-aggregation/src/integTest/groovy/org/gradle/api/plugins/TestReportAggregationPluginIntegrationTest.groovy

            // despite --continue flag, :application:testAggregateTestReport will not execute due to catastrophic failures
            result.assertTaskNotExecuted(":application:test")
            result.assertTaskNotExecuted(":direct:test")
            result.assertTaskNotExecuted(":transitive:test")
            result.assertTaskNotExecuted(":application:testAggregateTestReport")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 16:00:57 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r68/CompositeBuildTestLauncherCrossVersionSpec.groovy

            when:
            launchTests { TestLauncher launcher ->
                launcher.withTaskAndTestMethods(':included-build:test', "example.IncludedTest", ["foo2"])
            }
            then:
            assertTaskNotExecuted(":test")
            assertTaskExecuted(":included-build:test")
            assertTestExecuted(className: "example.IncludedTest", methodName: "foo2", task: ":included-build:test")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/RepositoriesDeclaredInSettingsIntegrationTest.groovy

                    implementation 'org:module:1.0'
                }
            """
    
            when:
            fails ':help'
    
            then:
            result.assertTaskExecuted(':buildSrc:jar')
            result.assertTaskNotExecuted(':help')
            failure.assertHasCause('Cannot resolve external dependency org:module:1.0 because no repositories are defined.')
        }
    
        // fails to delete directory under Windows otherwise
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 11:56:27 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/InProcessGradleExecuter.java

                outputResult.assertTaskExecuted(taskPath);
                return this;
            }
    
            @Override
            public ExecutionResult assertTaskNotExecuted(String taskPath) {
                assertThat(executedTasks, not(hasItem(taskPath)));
                outputResult.assertTaskNotExecuted(taskPath);
                return this;
            }
    
            @Override
            public ExecutionResult assertTaskOrder(Object... taskPaths) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/TestLauncherSpec.groovy

        }
    
        boolean assertTaskExecuted(String taskPath) {
            assert events.all.findAll { it instanceof TaskFinishEvent }.any { it.descriptor.taskPath == taskPath }
            true
        }
    
        def assertTaskNotExecuted(String taskPath) {
            assert !events.all.findAll { it instanceof TaskFinishEvent }.any { it.descriptor.taskPath == taskPath }
            true
        }
    
        def assertTaskNotUpToDate(String taskPath) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 08:42:44 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/AbstractIntegrationSpec.groovy

            tasks.each {
                result.assertTaskSkipped(it)
            }
        }
    
        protected void notExecuted(String... tasks) {
            assertHasResult()
            tasks.each {
                result.assertTaskNotExecuted(it)
            }
        }
    
        protected void executed(String... tasks) {
            assertHasResult()
            tasks.each {
                result.assertTaskExecuted(it)
            }
        }
    
    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