Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for assertIsEmptyDir (0.57 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedCustomTaskExecutionIntegrationTest.groovy

            then:
            executedAndNotSkipped ":customTask"
            file("build/empty").assertIsEmptyDir()
    
            when:
            cleanBuildDir()
            withBuildCache().run "customTask"
            then:
            skipped ":customTask"
            file("build/empty").assertIsEmptyDir()
        }
    
        @ToBeFixedForConfigurationCache(skip = INVESTIGATE)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  2. platforms/core-execution/execution-e2e-tests/src/integTest/groovy/org/gradle/integtests/StaleOutputIntegrationTest.groovy

            def customFile = file("customFile").touch()
            def myTaskDir = file("external/output").createDir()
    
            when:
            succeeds("myTask")
            then:
            dirInBuildDir.assertIsEmptyDir()
            customFile.assertDoesNotExist()
            buildFile.assertExists()
            // We should improve this eventually.  We currently don't delete _all_ outputs from every task
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 10:15:40 UTC 2024
    - 23K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyTaskIntegrationSpec.groovy

            when:
            run 'copy'
    
            then:
            file('dest').assertHasDescendants('emptyDir', 'dummy', 'yet/another/veryEmptyDir')
            file('dest/emptyDir').assertIsEmptyDir()
            file('dest/yet/another/veryEmptyDir').assertIsEmptyDir()
    
            when:
            run 'copy'
    
            then:
            skipped(':copy')
    
            when:
            file('files/more').createDir()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 67.9K bytes
    - Viewed (0)
  4. platforms/jvm/jvm-services/src/test/groovy/org/gradle/internal/jvm/inspection/DefaultJvmMetadataDetectorTest.groovy

            def javaHome = new File(temporaryFolder, "localGradle").tap { mkdirs() }
            def metadata = detector.getMetadata(testLocation(javaHome))
    
            then:
            metadata
            tmpDir.assertIsEmptyDir()
        }
    
        def "can detect metadata of #displayName"() {
            given:
            def execHandleFactory = createExecHandleFactory(systemProperties)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 18:25:34 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  5. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFile.java

         */
        public TestFile assertContainsDescendants(String... descendants) {
            return assertContainsDescendants(Arrays.asList(descendants));
        }
    
        public TestFile assertIsEmptyDir() {
            assertHasDescendants();
            return this;
        }
    
        public Set<String> allDescendants() {
            Set<String> names = new TreeSet<>();
            if (isDirectory()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 18:31:52 UTC 2024
    - 30.3K bytes
    - Viewed (0)
Back to top