How to get the Url where Grails 3.1.9 integration tests are running?
问题 From Grails 3.1.9 relase notes: Integration Test Port Integration and functional tests now run on a random port instead of the same port as the application by default. This is to avoid port conflict problems when the application is already running. Integration tests that hard code the port will need to be altered to use the serverPort property of tests marked with @Integration I was normally getting the integration test url with import grails.util.Holders ... .. . def