joukou/gulp-huxley — pull request #2 by thgaskell (2014-04-04 08:32:46+00:00)
Title: Decouple http and selenium server from gulp-huxley

I think this will fix #1, with regards to either server not staying up long enough for the huxley tests to finish. Although `gulpfile.js` may become a little bit more verbose by shifting the responsibility of the servers to the user, it also adds for more flexibility.

I would imagine developers would *already* have a working http server running that they want to run their tests on, so this shouldn't be a part of gulp-huxley.

Likewise, users may already have a selenium server installation or even a remote server they use for testing. This shouldn't be a part of gulp-huxley either.

Users can easily spin up a selenium server in `gulpfile.js` and list it as as a dependency for their huxley task. The selenium server should automatically shut down after the huxley task terminates, which resolves the issue with the server shutting down before huxley finishes.

In the end this allows the user the ability to customize everything while also making the gulp-huxley much simpler. *"Run huxley with these options"*.

I changed `gulpfile.js` to run both of the tasks by default. But the use case would be:
```bash
$ gulp http # Create http server
```
```bash
$ gulp test # Create selenium server and then start huxley.
```