Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 3,561 for succeeds (0.2 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/ObjectExtensionInstantiationIntegrationTest.groovy

                assert one.a == "a"
                assert one.b == "a"
    
                assert two.a == "a"
                assert two.b == "b"
            """
    
            expect:
            succeeds()
        }
    
        def "fails when too few construction parameters provided"() {
            buildFile """
                class Thing {
                    Thing(String a, String b) {
                    }
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 16.9K bytes
    - Viewed (0)
  2. subprojects/diagnostics/src/integTest/groovy/org/gradle/api/tasks/diagnostics/TaskReportTaskIntegrationTest.groovy

        def "always renders default tasks running #tasks"() {
            given:
            String projectName = 'test'
            settingsFile << "rootProject.name = '$projectName'"
    
            when:
            succeeds tasks
    
            then:
            output.contains("""
    Build Setup tasks
    -----------------
    init - Initializes a new Gradle build.
    updateDaemonJvm - Generates or updates the Gradle Daemon JVM criteria.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 15:00:02 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/caching/ArtifactCacheUnusedEntryCleanupIntegrationTest.groovy

            buildscriptWithDependency(snapshotModule)
    
            when:
            succeeds 'resolve'
    
            then:
            def resource = findFile(cacheDir, 'resources-*/**/maven-metadata.xml')
            def files = findFiles(cacheDir, "files-*/**/*")
            files.size() == 2
    
            when:
            forceCleanup(gcFile)
    
            and:
            succeeds 'help'
    
            then:
            resource.assertExists()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 22 12:06:23 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/ObjectExtensionServiceInjectionIntegrationTest.groovy

                        assert b == 12
                        assert objects != null
                    }
                }
    
                extensions.create("thing", Thing, "a", 12)
            """
    
            expect:
            succeeds()
        }
    
        def "can inject service using getter"() {
            buildFile """
                class Thing {
                    Thing(String a) {
                    }
    
                    @Inject
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 5K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/invocation/GradleLifecycleIsolationIntegrationTest.groovy

                println "$name with version $version"
                version = 'from script'
            '''
            buildFile script
            groovyFile 'sub/build.gradle', script
    
            when:
            succeeds 'help'
    
            then:
            outputContains 'root with version from action'
            outputContains 'sub with version from action'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 05:18:22 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftIncrementalBuildIntegrationTest.groovy

             """
    
            when:
            succeeds "assemble"
    
            then:
            result.assertTasksExecuted(assembleAppTasks)
            result.assertTasksNotSkipped(assembleAppTasks)
            executable("build/exe/main/debug/App").exec().out == app.expectedOutput
    
            when:
            app.applyChangesToProject(testDirectory)
            succeeds "assemble"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  7. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/xcode/XcodeSingleCppProjectIntegrationTest.groovy

                apply plugin: 'cpp-application'
            """
    
            app.writeToProject(testDirectory)
            succeeds("xcode")
    
            when:
            debugBinary.assertDoesNotExist()
            def resultDebug = xcodebuild
                .withProject(rootXcodeProject)
                .withScheme('App')
                .succeeds()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 27.7K bytes
    - Viewed (0)
  8. platforms/core-runtime/instrumentation-agent-services/src/integTest/groovy/org/gradle/internal/instrumentation/agent/AgentApplicationTest.groovy

            given:
            withDumpAgentStatusTask()
    
            when:
            succeeds()
    
            then:
            agentWasApplied()
        }
    
        def "agent is not applied if disabled in the command-line"() {
            given:
            withoutAgent()
            withDumpAgentStatusTask()
    
            when:
            succeeds()
    
            then:
            agentWasNotApplied()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. platforms/jvm/jacoco/src/integTest/groovy/org/gradle/testing/jacoco/plugins/JacocoPluginIntegrationTest.groovy

            '''.stripIndent()
    
            expect:
            succeeds 'help'
        }
    
        def "dependencies report shows default jacoco dependencies"() {
            when:
            succeeds("dependencies", "--configuration", "jacocoAgent")
            then:
            output.contains "org.jacoco:org.jacoco.agent:"
    
            when:
            succeeds("dependencies", "--configuration", "jacocoAnt")
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 16:03:36 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  10. 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)
Back to top