Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for goodCode (0.33 sec)

  1. platforms/software/reporting/src/integTest/groovy/org/gradle/api/reporting/plugins/BuildDashboardPluginIntegrationTest.groovy

            given:
            goodCode()
            goodTests()
            failingDependenciesForTestTask()
    
            when:
            runAndFail('check')
    
            then:
            !buildDashboardFile.exists()
        }
    
        void 'build dashboard is not generated if a dependency of the report generating task fails even with --continue'() {
            given:
            goodCode()
            goodTests()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  2. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginIncrementalAnalysisIntegrationTest.groovy

            buildFile << 'pmd { incrementalAnalysis = false }'
            goodCode()
    
            expect:
            succeeds("check", "-i")
            !file("build/tmp/pmdMain/incremental.cache").exists()
        }
    
        def "incremental analysis can be enabled"() {
            given:
            Assume.assumeTrue(supportIncrementalAnalysis())
            goodCode()
    
            when:
            succeeds("pmdMain")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/AbstractJavaCompilerIntegrationSpec.groovy

                    options.compilerArgs << '-Xlint:all,-options' << '-Werror'
                }
            """
            buildFile << compilerConfiguration()
        }
    
        def "can compile good code"() {
            given:
            goodCode()
    
            when:
            succeeds("compileJava")
    
            then:
            output.contains(logStatement())
            javaClassFile("compile/test/Person.class").exists()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 01 01:34:12 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/ProgressCrossVersionSpec.groovy

    class ProgressCrossVersionSpec extends ToolingApiSpecification implements WithOldConfigurationsSupport {
    
        def "receive progress events when requesting a model"() {
            given:
            goodCode()
    
            when: "asking for a model and specifying some task(s) to run first"
            def events = ProgressEvents.create()
            withConnection {
                ProjectConnection connection ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/BuildProgressCrossVersionSpec.groovy

    class BuildProgressCrossVersionSpec extends ToolingApiSpecification implements WithOldConfigurationsSupport {
    
        def "receive build progress events when requesting a model"() {
            given:
            goodCode()
    
            when: "asking for a model and specifying some task(s) to run first"
            def events = ProgressEvents.create()
            withConnection {
                ProjectConnection connection ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  6. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginToolchainsIntegrationTest.groovy

        def setup() {
            executer.withArgument("--info")
        }
    
        def "uses jdk from toolchains set through java plugin"() {
            given:
            goodCode()
            writeDummyConfig()
            def jdk = setupExecutorForToolchains()
            writeBuildFileWithToolchainsFromJavaPlugin(jdk)
    
            when:
            succeeds("checkstyleMain")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 16 22:34:07 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  7. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginVersionIntegrationTest.groovy

        @Rule
        public final Resources resources = new Resources()
    
        def setup() {
            writeBuildFile()
            writeConfigFile()
        }
    
        def "analyze good code"() {
            goodCode()
    
            expect:
            succeeds('check')
            file("build/reports/checkstyle/main.sarif").assertDoesNotExist()
            file("build/reports/checkstyle/test.sarif").assertDoesNotExist()
    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/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/daemon/DaemonJavaCompilerIntegrationTest.groovy

        }
    
        @Override
        String logStatement() {
            "compiler daemon"
        }
    
        def setup() {
            executer.withArguments("-d")
        }
    
        def "respects fork options settings"() {
            goodCode()
            buildFile << """
                import org.gradle.workers.internal.WorkerDaemonClientsManager
                import org.gradle.internal.jvm.Jvm
    
                tasks.withType(JavaCompile) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 20:20:39 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginVersionIntegrationTest.groovy

            goodCode()
            buildFile << """
            pmdMain {
                rulesMinimumPriority = 11
            }
    """
            expect:
            fails("check")
            failure.assertHasCause("Invalid rulesMinimumPriority '11'.  Valid range 1 (highest) to 5 (lowest).")
        }
    
        def "can configure reporting"() {
            goodCode()
            buildFile << """
                pmdMain {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  10. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginToolchainsIntegrationTest.groovy

            given:
            goodCode()
            writeBuildFile()
    
            when:
            succeeds("pmdMain")
    
            then:
            outputContains("Running pmd with toolchain '${Jvm.current().javaHome.absolutePath}'")
        }
    
        def "uses current jdk if pmd plugin is not applied"() {
            given:
            goodCode()
            setupExecutorForToolchains()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 07:47:10 UTC 2024
    - 6K bytes
    - Viewed (0)
Back to top