Skip to content

Fix test suite #354

@bajtos

Description

@bajtos

Our test suite has several problems.

  1. bluemix generator is calling process.exit() on failure, which aborts Mocha test suite in the middle. Because the process exits with exit code 0, it looks like all tests passed.

    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');
  2. The test suite for bluemix generator 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.

  3. 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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions