Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for goodCode (0.12 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/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)
  3. 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)
  4. 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)
  5. 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)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/TaskProgressCrossVersionSpec.groovy

        @Rule BlockingHttpServer server = new BlockingHttpServer()
    
        def "receive task 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: Thu May 16 10:10:39 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/TestProgressCrossVersionSpec.groovy

    class TestProgressCrossVersionSpec extends ToolingApiSpecification implements WithOldConfigurationsSupport {
        def "receive test progress events when requesting a model"() {
            given:
            goodCode()
    
            when: "asking for a model and specifying some test task(s) to run first"
            def events = ProgressEvents.create()
            withConnection {
                ProjectConnection connection ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 06:59:43 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  8. platforms/jvm/language-groovy/src/testFixtures/groovy/org/gradle/groovy/compile/AbstractBasicGroovyCompilerIntegrationSpec.groovy

                ${mavenCentralRepository()}
                compileGroovy.groovyOptions.failOnError = false
            """.stripIndent()
    
            and:
            goodCode()
            badJavaCode()
    
            expect:
            succeeds 'compileGroovy'
        }
    
        def goodCode() {
            file("src/main/groovy/compile/test/Person.groovy") << """
                package compile.test
                class Person {}
            """.stripIndent()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 09:08:49 UTC 2023
    - 27K bytes
    - Viewed (0)
  9. plugin/pkg/admission/imagepolicy/admission_test.go

    		operation            admission.Operation
    	}{
    		{
    			test:        "Single container allowed",
    			pod:         goodPod("good"),
    			wantAllowed: true,
    			subresource: "",
    			operation:   admission.Create,
    		},
    		{
    			test:        "Single container denied",
    			pod:         goodPod("bad"),
    			wantAllowed: false,
    			wantErr:     true,
    			subresource: "",
    			operation:   admission.Create,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 06:05:06 UTC 2023
    - 32.9K bytes
    - Viewed (0)
Back to top