Ensure tests exit in Travis (#9288)

refs https://github.com/mochajs/mocha/issues/3044

- there was a breaking change in mocha, which i have mentioned [here](ee7710ba68), but i thought it's not required, but it is
- it can happen that with mocha 4.x, travis does not complete a test run, because the process does not exit (maybe the test env does not shutdown everything completely)
- but it's hard to figure out why that happens, so we simply add `--exit` (this reflects the mocha 3.x behaviour)
- i've tested that failed tests are still counted and the build results in a red state
This commit is contained in:
Katharina Irrgang 2017-11-29 16:22:21 +01:00 committed by Kevin Ansfield
parent d58f7ae22b
commit 611e8b5634

View File

@ -132,7 +132,8 @@ var config = require('./core/server/config'),
reporter: grunt.option('reporter') || 'spec',
timeout: '30000',
save: grunt.option('reporter-output'),
require: ['core/server/overrides']
require: ['core/server/overrides'],
exit: true
},
// #### All Unit tests