Skip to content

tests: prevent output in phpunit tests#1158

Open
outdooracorn wants to merge 2 commits into
mainfrom
prevent-output-in-phpunit-tests
Open

tests: prevent output in phpunit tests#1158
outdooracorn wants to merge 2 commits into
mainfrom
prevent-output-in-phpunit-tests

Conversation

@outdooracorn

@outdooracorn outdooracorn commented Jun 10, 2026

Copy link
Copy Markdown
Member
  • Modify ElasticSearchIndexDeleteTest so it doesn't print output.
  • beStrictAboutOutputDuringTests marks tests as "risky" if there is output printed.
  • failOnRisky makes the test suite fail if any tests are marked as "risky".

Bug: T428716

@outdooracorn outdooracorn self-assigned this Jun 10, 2026
* Modify `ElasticSearchIndexDeleteTest` so it doesn't print output.
* `beStrictAboutOutputDuringTests` marks tests as "risky" if there is output printed.
* `failOnRisky` makes the test suite fail if any tests are marked as "risky".

Bug: T428716
@outdooracorn outdooracorn force-pushed the prevent-output-in-phpunit-tests branch from 107b920 to ec2cbd2 Compare June 10, 2026 13:58
@deer-wmde

Copy link
Copy Markdown
Contributor

+1 to fix the test by calling fail() on error

a bit unsure about removing the output from the integration test

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