Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for buildAndFail (0.28 sec)

  1. build-logic/documentation/src/test/groovy/gradlebuild/docs/FindBrokenInternalLinksTest.groovy

    === Dead Section Links
    This section doesn't exist: <<missing_section>>
    Also see this one, which is another dead link: <<other_missing_section>>
            """
    
            when:
            run('checkDeadInternalLinks').buildAndFail()
    
            then:
            assertFoundDeadSectionLinks(sampleDoc, "missing_section", "other_missing_section")
        }
    
        def "validates present section links"() {
            given:
            sampleDoc << """
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Mon Nov 28 22:01:54 GMT 2022
    - 7.8K bytes
    - Viewed (0)
  2. 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", "--no-watch-fs").buildAndFail()
            assertEquals(TaskOutcome.SUCCESS, result.task(":successful-test-with-leftover:test")!!.outcome)
    
            assertEquals(1, StringUtils.countMatches(result.output, "Found non-empty test files dir"))
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Wed Jun 14 12:35:52 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTaskIntegrationTest.kt

                                ]
                            }
                        ]
                    }
                """.trimIndent()
            )
    
            val initialVerifyResult = run(":verifyAcceptedApiChangesOrdering").buildAndFail()
            Assertions.assertEquals(TaskOutcome.FAILED, initialVerifyResult.task(":verifyAcceptedApiChangesOrdering")!!.outcome)
    
            val sortingResult = run(":sortAcceptedApiChanges").build()
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Fri Sep 30 18:18:04 GMT 2022
    - 7.5K bytes
    - Viewed (0)
  4. 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 expectedOutput = "API changes in file '${acceptedApiChangesFile.name}' should be in alphabetical order (by type and member), yet these changes were not:\n"
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Mon Nov 28 21:09:42 GMT 2022
    - 5.6K bytes
    - Viewed (0)
Back to top