Skip to content

bug(testFramework): Retrieving the version of the test framework/static analysis fails depending of SHELL_VERBOSITY #3123

@theofidry

Description

@theofidry
Question Answer
Infection version 0.32.7
PhpSpecAdapter version 0.3.1
CodeceptionAdapter version 0.4.6
TestoAdapater 0.1.3
CI either
PHP version any
Platform any
Github Repo -

Executing:

bin/infection --test-framework=phpstan --quiet

Will cause a failure. This is because the Symfony Application will adjust SHELL_VERBOSITY accordingly and the process we start to get the package version inherits those environment variables, so we end up doing SHELL_VERBOSITY=-2 phpstan --version --no-ansi which will yield an empty string.

Fixing this should not be too hard, finding how to properly test it without looking completely artificial is a bit more annoying.

Metadata

Metadata

Assignees

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions