Skip to content

Increase coverage for BuildCommand, fix --no-html-output flag bug#1117

Merged
alcohol merged 1 commit intocomposer:mainfrom
theimbender:build-command-coverage
Mar 20, 2026
Merged

Increase coverage for BuildCommand, fix --no-html-output flag bug#1117
alcohol merged 1 commit intocomposer:mainfrom
theimbender:build-command-coverage

Conversation

@theimbender
Copy link
Contributor

Wanted to increase code coverage of BuildCommand.php to cover all the low-hanging fruit (i.e., anything that doesn't require mocking network requests or any kind of refactoring). I found that the --no-html-output flag was not actually working at all, the logic was a little off. That's been refactored into a small private function, and I ran these changes with and without the flag to confirm that it's now working.

@theimbender theimbender force-pushed the build-command-coverage branch from 5640205 to ad0f8d2 Compare March 19, 2026 18:34
@alcohol
Copy link
Member

alcohol commented Mar 20, 2026

Hmm, not sure if this qualifies as a BC.. the combined behaviour of the flag + config setting (or lack of) was rather weird it seems and I do believe your implementation makes more sense. But it does mean things might behave different in certain scenarios now. I think I can live with that though 🤷

@alcohol alcohol merged commit ac88c70 into composer:main Mar 20, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants