Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 3,561 for succeeds (0.12 sec)

  1. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/daemon/ScalaCompilerDaemonReuseIntegrationTest.groovy

            withPersistentScalaCompilerDaemons()
    
            when:
            succeeds("compileAll")
    
            then:
            executedAndNotSkipped "${compileTaskPath('main')}", "${compileTaskPath('main2')}"
    
            and:
            assertOneCompilerDaemonIsRunning()
    
            when:
            executer.withWorkerDaemonsExpirationDisabled()
            succeeds("clean", "compileAll")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  2. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/repository/ResolvingWithPluginManagementSpec.groovy

                resolutionStrategy.eachPlugin {
                    if(requested.id.name == 'plugin') {
                        useVersion('1.0')
                    }
                }
            """)
    
            when:
            succeeds("pluginTask")
    
            then:
            output.contains("I'm here")
        }
    
        def 'when no version is specified, resolution fails'() {
            given:
            publishTestPlugin()
            buildScript """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/RuleTaskBridgingIntegrationTest.groovy

                task bar(type: EchoTask)
                task dep { dependsOn foo, bar }
            """
    
            when:
            succeeds "foo", "bar"
    
            then:
            output.contains "foo: custom message!"
            output.contains "bar: default message!"
    
            when:
            succeeds "dep"
    
            then:
            output.contains "foo: custom message!"
            output.contains "bar: default message!"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 12:57:53 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  4. platforms/software/plugins-version-catalog/src/integTest/groovy/org/gradle/catalog/VersionCatalogIntegrationTest.groovy

            buildFile << """
                plugins {
                    id("version-catalog")
                }
            """
            withSampleCatalog()
    
            when:
            succeeds ':generateCatalogAsToml'
    
            then:
            expectPlatformContents 'expected1'
        }
    
        def "assemble task generates platform file"() {
            buildFile << """
                plugins {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 16 12:28:14 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/internal/model/ObjectFactoryIntegrationTest.groovy

    """
    
            expect:
            succeeds()
        }
    
        def "plugin can create instance of interface that extends Named"() {
            buildFile """
                interface Thing extends Named { }
    
                def t = objects.newInstance(Thing, "thingName")
                assert t.name == "thingName"
    """
    
            expect:
            succeeds()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Apr 07 02:25:12 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/AbstractQueryDomainObjectContainerIntegrationTest.groovy

            expect:
            succeeds "help"
    
            where:
            queryMethod << getQueryMethods()
        }
    
        def "can execute query method #queryMethod.key from Provider.configure (realized)"() {
            buildFile << """
                realized.configure {
                    ${queryMethod.value}
                }
                toBeRealized.get()
            """
    
            expect:
            succeeds "help"
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Nov 05 09:53:33 UTC 2021
    - 3.1K bytes
    - Viewed (0)
  7. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginVersionIntegrationTest.groovy

                }
            """
    
            expect:
            succeeds('check')
        }
    
        def "changes to files in config dir causes task to be out-of-date"() {
            goodCode()
            when:
            succeeds('check')
            then:
            result.assertTaskExecuted(":checkstyleMain")
    
            when:
            succeeds('check')
            then:
            result.assertTaskSkipped(":checkstyleMain")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 19.2K bytes
    - Viewed (0)
  8. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/FunctionalSourceSetIntegrationTest.groovy

                            println "to-string: " + sources.toString()
                        }
                    }
                }
            }
            apply plugin: Rules
            """
    
            expect:
            succeeds "printTask"
            output.contains("name: fss")
            output.contains("display-name: FunctionalSourceSet 'fss'")
            output.contains("to-string: FunctionalSourceSet 'fss'")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  9. platforms/documentation/samples/src/integTest/groovy/org/gradle/integtests/samples/files/SamplesCopyIntegrationTest.groovy

        def "can copy a single file using task properties for the paths with #dsl dsl"() {
            given:
            def dslDir = sample.dir.file(dsl)
            executer.inDirectory(dslDir)
    
            when:
            succeeds('copyReport2')
    
            then:
            dslDir.file('build/toArchive/my-report.pdf').isFile()
    
            where:
            dsl << ['groovy', 'kotlin']
        }
    
        @UsesSample("files/copy")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  10. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftIncrementalCppInteroperabilityIntegrationTest.groovy

                    apply plugin: 'cpp-library'
                }
            """
            app.library.writeToProject(file("cppGreeter"))
            app.application.writeToProject(file("app"))
    
            when:
            succeeds ":app:assemble"
    
            then:
            result.assertTasksExecuted(":cppGreeter:compileDebugCpp", ":cppGreeter:linkDebug",
                ":app:compileDebugSwift", ":app:linkDebug", ":app:installDebug", ":app:assemble")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 7.9K bytes
    - Viewed (0)
Back to top