Skip to content

throwing an error in run-rerun prevents testresults from being imported to testrail #2684

@shr2

Description

@shr2

What are you trying to achieve?

I want to retest failed testcases automatically using run-rerun command. The results shall be imported to testrail.
My codecept tests are very stable and many failed ones will be failing again in rerun. In that case codeceptJS is throwing an error (see line of code below) and my testrail-import addon won't get triggered.

throw new Error(`Flaky tests detected! ${successCounter} success runs achieved instead of ${minSuccess} success runs expected`);

Could you please switch from throwing an Error to just output.error? That would work for me.

Details

  • CodeceptJS version: 2.6.11

image

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