Skip to content

Test Marked As Passed Even If Different Error Type Is Returned #18

@mr-feek

Description

@mr-feek

👋 I noticed that my Codeception tests pass even if I expect a different type of error from psalm.

Steps To Reproduce
Write a gherkin test snippet and include Then I see these errors in the test. Expect a specific error such as | MissingFile | Cannot find file | when require_once file/that/doesn't/exist.php is analyzed.

An example is here: psalm/psalm-plugin-laravel@d69377b#diff-dc52f1aabf7e9388e148c112a4b349c1R32

Expected

  • Test fails because UnresolvableInclude was returned by psalm instead of the expected MissingFile

Actual

  • Test passes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions