Verifies an application listens on a port when spawned
npm install --save-dev grunt-verify-app
Here are the defaults
verify_app: {
server: {
options: {
script: 'app',
port: 3000,
timeout: 10000, // how long before giving up
frequency: 1000 // how often to check the port
}
}
}
Run it!
grunt verify_app:server
If the verification times out, the task is considered a failure.
MIT