Skip to content
This repository was archived by the owner on Jan 3, 2025. It is now read-only.
This repository was archived by the owner on Jan 3, 2025. It is now read-only.

Potentially misleading behavior of shoudNotThrow #217

@piotrb5e3

Description

@piotrb5e3

I think shouldNotThrow could hide a programming error.

The following code completes without issues:

invoking { throw IllegalArgumentException() } shouldNotThrow CustomException::class

I think the IllegalArgumentException should be re-thrown so it's not hidden from the developer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions