Testing long running/persistent plugins

What is the recommended approach for testing long running plugins?

In particular I want to test the Quarkus development mode, which will run continuously until the process is killed. For Maven we explicitly launch a new maven process, would this be the best way to do this for Gradle as well, or is there some existing test infrastructure we could use?