To create mocks for the tests, I’ve been using
npm gulp-stubby-server which is essentially a wrapper around Stubby. When running the tests in a CI environment I found that the stubby server wasn’t shutting down properly. This meant that the next time the tests ran, the stubby server wouldn’t start up as it was already running.
Anyway, my first contribution to open source was adding a
stop() method into
gulp-stubby-server so you can programmatically stop the stubby server when your done running tests.
Sounds very simple doesn’t it? But this is great! I found an issue at work and rather than just fixing it for me, as it’s an open source project, I was able to submit my code and fix it for anyone else having the same issue.
This is cool! :)
Gulp Stubby Server