Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for buildAndFail (0.15 sec)

  1. 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 May 01 11:36:15 GMT 2024
    - Last Modified: Wed Jun 14 12:35:52 GMT 2023
    - 10.6K bytes
    - Viewed (0)
Back to top