You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
👋 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.
I just realized I have the wrong syntax. I didn't include | Type | Message in my assertion. Should we complain loudly about that to avoid a false positive like what I ran into?
👋 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 |
whenrequire_once file/that/doesn't/exist.php
is analyzed.An example is here: psalm/psalm-plugin-laravel@d69377b#diff-dc52f1aabf7e9388e148c112a4b349c1R32
Expected
UnresolvableInclude
was returned by psalm instead of the expectedMissingFile
Actual
The text was updated successfully, but these errors were encountered: