Skip to content

Add 'failed' status to codeceptjs report#1428

Open
formaceft-93 wants to merge 2 commits intomainfrom
add-failed-to-codecept
Open

Add 'failed' status to codeceptjs report#1428
formaceft-93 wants to merge 2 commits intomainfrom
add-failed-to-codecept

Conversation

@formaceft-93
Copy link
Contributor

@formaceft-93 formaceft-93 commented Mar 18, 2026

Fix #1404

Checklist

@formaceft-93 formaceft-93 added the type:bug Something isn't working label Mar 18, 2026
@formaceft-93 formaceft-93 requested a review from epszaw March 19, 2026 10:50
@formaceft-93 formaceft-93 marked this pull request as ready for review March 19, 2026 10:50
const getCodeceptStatusFromError = (error: Partial<Error>, hookName?: string): Status => {
const status = getStatusFromError(error);

if (status === Status.FAILED || hookName) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just return hookName || Status.FAILED

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But it's also possible, that the test can be really broken.
It's easy to check – throw an error right in the tests, the test should become broken. Not all the "not-passed" tests should be treated as "failed"

@formaceft-93 formaceft-93 requested a review from epszaw March 24, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

theme:codeceptjs type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CodeceptJS] Allure marks all test failures as "Broken"

2 participants