A static server that is very easy to kill. Great for tests. supports html5
npm install -g killable-static-server
killable-static-server
curl http://localhost:9090/killme
OR
killall killable-static-server
Just add this to your protractor configuration file
beforeLaunch: ()=>{
require('killable-static-server')
}
This will run and kill your server on each run
- verbose - to see verbose prints. default: false
- port - port to use. default: 9090
- dir - static dir to serve. default: dist
- killUrl - url that will kill the process. default:
/killme