Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for waitForChangesToBePickedUp (0.83 sec)

  1. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/LoggingFileSystemWatchingIntegrationTest.groovy

            waitForChangesToBePickedUp()
            then:
            output.contains(NativeLogger.name)
    
            when:
            def logLineCountBeforeChange = daemon.logLineCount
            file("output.txt").text = "Changed"
            waitForChangesToBePickedUp()
            then:
            daemon.logContains(logLineCountBeforeChange, NativeLogger.name)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/ChangesByGradleFileWatchingIntegrationTest.groovy

            when:
            file("build/output2/overlapping.txt").text = "overlapping"
            waitForChangesToBePickedUp()
            withWatchFs().run ":incremental", "-DoutputDir=output2"
            then:
            executedAndNotSkipped(":incremental")
            file("build/output1").assertDoesNotExist()
    
            when:
            waitForChangesToBePickedUp()
            withWatchFs().run ":incremental", "-DoutputDir=output1"
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/SymlinkFileSystemWatchingIntegrationTest.groovy

            executedAndNotSkipped ":myTask"
    
            when:
            withWatchFs().run "myTask"
            then:
            skipped(":myTask")
    
            when:
            file(fileToChange).text = "changed"
            waitForChangesToBePickedUp()
            withWatchFs().run "myTask"
            then:
            executedAndNotSkipped ":myTask"
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/ChangesDuringTheBuildFileSystemWatchingIntegrationTest.groovy

                }
            """
    
            when:
            runWithFileSystemWatchingAndMakeChangesWhen("consumer", "userInput") {
                inputFile.text = "initial"
                waitForChangesToBePickedUp()
            }
            then:
            executedAndNotSkipped(":consumer")
            // TODO: sometimes, the changes from the same build are picked up
            projectFilesInVfs >= 1
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/FileSystemWatchingFixture.groovy

            executer.withArgument(FileSystemWatchingHelper.verboseVfsLoggingArgument)
            new VerboseVfsLogAccessor(this as AbstractIntegrationSpec)
        }
    
        void waitForChangesToBePickedUp() {
            FileSystemWatchingHelper.waitForChangesToBePickedUp()
        }
    
        protected static class VerboseVfsLogAccessor {
            private final AbstractIntegrationSpec spec
    
            VerboseVfsLogAccessor(AbstractIntegrationSpec spec) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/ChangesBetweenBuildsFileSystemWatchingIntegrationTest.groovy

            then:
            outputContains "Hello World!"
            executedAndNotSkipped ":compileJava", ":classes", ":run"
    
            when:
            mainSourceFile.text = sourceFileWithGreeting("Hello VFS!")
            waitForChangesToBePickedUp()
            runWithWatchingEnabled "run"
            then:
            outputContains "Hello VFS!"
            executedAndNotSkipped ":compileJava", ":classes", ":run"
        }
    
        def "buildSrc changes are recognized"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/FileSystemWatchingHelper.java

    public class FileSystemWatchingHelper {
    
        private static final int WAIT_FOR_CHANGES_PICKED_UP_MILLIS = 120;
    
        public static void waitForChangesToBePickedUp() throws InterruptedException {
            Thread.sleep(WAIT_FOR_CHANGES_PICKED_UP_MILLIS);
        }
    
        public static String getEnableFsWatchingArgument() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2K bytes
    - Viewed (0)
  8. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/BuildOperationsFileSystemWatchingIntegrationTest.groovy

            !finishedResult.stateInvalidatedAtStartOfBuild
            retainedFiles(finishedResult)
    
            when:
            inputFile.text = "changed"
            waitForChangesToBePickedUp()
            withWatchFs().run ("myTask")
            startedResult = buildStartedResult()
            finishedResult = buildFinishedResult()
            then:
            startedResult.watchingEnabled
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. testing/soak/src/integTest/groovy/org/gradle/vfs/FileSystemWatchingSoakTest.groovy

            numberOfRuns.times { iteration ->
                // when:
                println("Running iteration ${iteration + 1}")
                changeSourceFiles(iteration, numberOfChangesBetweenBuilds)
                waitForChangesToBePickedUp()
                succeeds("assemble")
    
                // then:
                assert daemons.daemon.logFile == daemon.logFile
                daemon.assertIdle()
                assertWatchingSucceeded()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  10. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/WatchedDirectoriesFileSystemWatchingIntegrationTest.groovy

            inDirectory(projectDir)
            withWatchFs().run "assemble"
            then:
            executedAndNotSkipped ":assemble"
    
            when:
            FileUtils.cleanDirectory(projectDir)
            waitForChangesToBePickedUp()
            then:
            projectDir.delete()
        }
    
        def "the caches dir in the Gradle user home is part of the global caches"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 15.2K bytes
    - Viewed (0)
Back to top