Express server for ember test

Ember-cli lets you define your own express server in server/index.js, but this server is not loaded in when running ember test.

I’d love to have an express server when running my test suite, my thinking here is to setup an addon that uses the testemMiddleware to load server/index.js. That way it’ll be available during ember-test commands.

(Side note: here’s an addon that does something similar)

Another thought I had was to have testemMiddleware load a server/test-index.js file, specifically for testing purposes. However, if that file is only included in testemMiddleware, it wouldn’t be available for users running ember-cli and visiting /tests, which makes this approach seem bad?

So, loading server/index.js during testemMiddleware, thoughts?