Karma has support to serve static files and that would be much simpler to use than spinning up a server in the Gulp file.