-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2>&1
expression leads to all Psalm unrelated STDERR
breaking report parsing
#54
Comments
I'd say Psalm should have a combination of flags to suppress unnecessary output. It's actually what |
And as for the suggestion to drop the redirection, while it'll fix the problem at hand, it'll also make debugging harder as all you'll get when Psalm crashes is empty STDOUT. |
While `psalm/codeception-psalm-module` is a good idea in theory, in practice, Gherkin scenario steps as a composer dependency are really (REALLY) hard to distribute and maintain together with a test suite. This move replaces the external dependency with a local one, with the test runner mostly staying out of the way, and test logic all implemented in the `Context` class we wrote ourselves. The main aim is to improve atomicity of changes on the test suite itself. Ref: psalm/codeception-psalm-module#54
I've taken another approach (sorry, mostly did it while on the go, so I failed to respond here): Ocramius/psalm-plugin-phpunit@a9f5d78 I replaced Any CLI errors are better abstracted by I'm unsure if I should keep this issue open here: lemme know your thoughts on that. |
Your original issue was caused by the fact that you moved the module into its own composer dependency space. This caused version checks (done via InstalledPackages) to fail and the module to assume it's running with an ancient Psalm version. |
Yeah, I dropped all version checking code too, and the dependencies thereof for downstream consumers 😁 |
Thanks @weirdan! |
Before this is released I'd like to get #57 merged. |
I'm currently working on psalm/psalm-plugin-phpunit#149
The tests there fail like this:
From what I can see, the tool attempts to parse this prefix section (
STDERR
):I'm suggesting here that we drop the
STDERR
redirection in this location:codeception-psalm-module/src/Module.php
Lines 116 to 123 in 8b8f4dd
WDYT?
The text was updated successfully, but these errors were encountered: