Skip to content

JUNIT reporter doesn't mark test as failed if the beforeAll throws error #4516

@jonatan-zint-tfs

Description

@jonatan-zint-tfs

Describe the bug

When a beforeAll hook throws an error, the generated JUNIT report will report all tests in that describe block as without failiure, ergo succeeded.

That doesn't seem right to me.

Reproduction

I set up a minimal example in this stackblitz:

https://stackblitz.com/edit/vitest-dev-vitest-brpfrz

System Info

See the stackblitz example

Used Package Manager

npm

Validations

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