wait-on

wait-on is a cross platform command line utility and Node.js API which will wait for files, ports, sockets, and http(s) resources to become available

start-server-and-test

Starts server, waits for URL, then runs test command; when the tests end, shuts down server