Skip to content

Codeception exit code breaking CI Automation on 'failed tests' #14

@precariouspanther

Description

@precariouspanther

In Codeception/Command/Run::execute() on line 66:
if ($codecept->getResult()->failureCount() or $codecept->getResult()->errorCount()) exit(1);

Codeception is exiting with a status code of "1" whenever any of the tests fail. This confuses CI frameworks like Bamboo (and presumably jenkins) into thinking that codeception itself failed.

Ideally even when errors have been detected the exit code should still be "0" so that CI frameworks know that Codeception executed the tests correctly, and then parse the results to see which tests failed or succeeded.

Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions