Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for buildAndFail (0.19 seconds)

  1. build-tools-internal/src/integTest/java/org/elasticsearch/gradle/jarhell/ThirdPartyAuditTaskIT.java

                    "-PcompileOnlyGroup=other.gradle:broken-log4j",
                    "-PcompileOnlyVersion=0.0.1",
                    "-PcompileGroup=other.gradle:dummy-io",
                    "-PcompileVersion=0.0.1"
            ).buildAndFail();
    
            assertTaskFailed(result, ":absurd");
            assertOutputContains(result.getOutput(), "Classes with violations:", "  * TestingIO", "> Audit of third party dependencies failed");
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 4.6K bytes
    - Click Count (0)
  2. build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/test/rerun/InternalTestRerunPluginFuncTest.groovy

            createTest("SomeOtherTest2")
            createTest("SomeOtherTest3")
            createTest("SomeOtherTest4")
            createTest("SomeOtherTest5")
            then:
            def result = gradleRunner("test").buildAndFail()
            result.output.contains("total executions: 2") == false
            and: "no jvm system exit tracing provided"
            result.output.contains("""Test jvm exited unexpectedly.
    Test jvm system exit trace:""") == false
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Fri Sep 03 10:22:28 GMT 2021
    - 8.9K bytes
    - Click Count (0)
  3. build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/InternalDistributionArchiveCheckPluginFuncTest.groovy

                tasks.withType(AbstractArchiveTask).configureEach {
                    from 'SomeFile.class'
                }
            """
            when:
            def result = gradleRunner(":darwin-${archiveType}:check", '--stacktrace').buildAndFail()
            then:
            result.task(":darwin-${archiveType}:checkExtraction").outcome == TaskOutcome.FAILED
            result.output.contains("Detected class file in distribution ('SomeFile.class')")
    
            where:
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Fri Sep 03 10:22:28 GMT 2021
    - 5.9K bytes
    - Click Count (0)
  4. build-tools-internal/src/integTest/java/org/elasticsearch/gradle/internal/ExportElasticsearchBuildResourcesTaskIT.java

        }
    
        public void testIncorrectUsage() {
            assertOutputContains(
                getGradleRunner().withArguments("noConfigAfterExecution", "-s", "-i").buildAndFail().getOutput(),
                "buildResources can't be configured after the task ran"
            );
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 2.2K bytes
    - Click Count (0)
  5. build-logic/buildquality/src/test/kotlin/gradlebuild/testcleanup/TestFilesCleanupServiceTest.kt

            }
        }
    
        @Test
        fun `fail build if leftover file found and test passes`() {
            val result = run(":successful-test-with-leftover:test").buildAndFail()
            assertEquals(TaskOutcome.SUCCESS, result.task(":successful-test-with-leftover:test")!!.outcome)
    
            assertEquals(2, StringUtils.countMatches(result.output, "Found non-empty test files dir"))
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Feb 10 00:16:44 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  6. build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/precommit/LicenseHeadersPrecommitPluginFuncTest.groovy

            }
            """
            dualLicensedFile()
            unknownSourceFile()
            unapprovedSourceFile()
    
            when:
            def result = gradleRunner("licenseHeaders").buildAndFail()
    
            then:
            result.task(":licenseHeaders").outcome == TaskOutcome.FAILED
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Fri Sep 03 10:22:28 GMT 2021
    - 4.1K bytes
    - Click Count (0)
  7. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTaskIntegrationTest.kt

        fun assertHasMisorderedChanges(changes: List<Change>? = null) {
            val standardError = StringWriter()
            run(":verifyAcceptedApiChangesOrdering")
                .forwardStdError(standardError)
                .buildAndFail()
    
            val files = listOf(firstAcceptedApiChangesFile, secondAcceptedApiChangesFile)
            val cleanupHint = "To automatically alphabetize these changes run: './gradlew :architecture-test:sortAcceptedApiChanges'"
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Nov 29 14:03:44 GMT 2024
    - 6K bytes
    - Click Count (0)
  8. build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/InternalDistributionDownloadPluginFuncTest.groovy

                    dependsOn elasticsearch_distributions.test_distro
                }
            """
            when:
            def result = gradleRunner("createExtractedTestDistro").buildAndFail()
            then:
            assertOutputContains(result.output, "Configuring a snapshot bwc distribution ('test_distro') " +
                    "without a bundled JDK is not supported.")
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 6.7K bytes
    - Click Count (0)
  9. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTaskIntegrationTest.kt

                            }
                        ]
                    }
                """.trimIndent()
            )
    
            val initialVerifyResult = run(":verifyAcceptedApiChangesOrdering").buildAndFail()
            assertEquals(TaskOutcome.FAILED, initialVerifyResult.task(":verifyAcceptedApiChangesOrdering")!!.outcome)
    
            val sortingResult = run(":sortAcceptedApiChanges").build()
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Mar 14 02:17:00 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  10. build-tools-internal/src/integTest/java/org/elasticsearch/gradle/jarhell/TestingConventionsTasksIT.java

        }
    
        public void testInnerClasses() {
            GradleRunner runner = getGradleRunner().withArguments("clean", ":no_tests_in_inner_classes:testingConventions", "-i", "-s");
            BuildResult result = runner.buildAndFail();
            assertOutputContains(
                result.getOutput(),
                "Test classes implemented by inner classes will not run:",
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 5.2K bytes
    - Click Count (0)
Back to Top