-
Notifications
You must be signed in to change notification settings - Fork 70
Description
Our test suite has several problems.
-
bluemixgenerator is callingprocess.exit()on failure, which aborts Mocha test suite in the middle. Because the process exits with exit code0, it looks like all tests passed.generator-loopback/bluemix/index.js
Lines 74 to 75 in 060bdd7
this.log(chalk.red('\n Invalid LoopBack directory\n')); process.exit(); I am proposing to change this block and throw an Error instead.
throw new Error('Invalid LoopBack directory');
-
The test suite for
bluemixgenerator works when executed on its own (mocha test/bluemix.test.js) passes, but fails when executed together with other tests. We need to find and fix the reason. -
Setting the bluemix test suite aside, several other tests are failing. These tests are not executed now because bluemix exits the process prematurely. We need to fix these tests to pass again.