From 115af819a07de12e6ebd1cc86774b4a09caed770 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Fri, 16 Oct 2015 15:00:33 -0500 Subject: [PATCH] Create task to set up a test server --- tasks/gulp-tests.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tasks/gulp-tests.js b/tasks/gulp-tests.js index 6861b3a399..ef1bfcbd17 100644 --- a/tasks/gulp-tests.js +++ b/tasks/gulp-tests.js @@ -279,6 +279,15 @@ gulp.task('test:e2e:safe', ['test:prepare'], (cb) => { }); }); +gulp.task('test:startServer', (done) => { + process.env.NODE_DB_URI = TEST_DB_URI; + process.env.DISABLE_REQUEST_LOGGING = true; + process.env.PORT = TEST_SERVER_PORT; + + let server = require('../website/src/server.js'); + server.listen(TEST_SERVER_PORT, done); +}); + gulp.task('test', [ 'test:common:safe', 'test:content:safe',