Skip to content
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

Provide distinct messages when a test is considered risky due to output buffering level mismatch #5343

Conversation

cosmastech
Copy link
Contributor

@cosmastech cosmastech commented Apr 23, 2023

Currently, a test is marked risky if it didn't close its output buffer OR if it closed additional output buffers.

This PR will give the developer granularity to see which of the two cases caused the issue.

@cosmastech cosmastech changed the title Provide distinct message when test is marked risky due to output buffering level from TestCase@stopOutputBuffering() Provide distinct messages when test is marked risky due to output buffering level from TestCase@stopOutputBuffering() Apr 23, 2023
@sebastianbergmann sebastianbergmann force-pushed the issue-5342_distinct-output-buffering-risky-messages branch from 687e757 to d36a8a8 Compare May 1, 2023 15:25
@sebastianbergmann
Copy link
Owner

Can you please send this against 10.1 (instead of against main)? Thanks!

@codecov
Copy link

codecov bot commented May 1, 2023

Codecov Report

Merging #5343 (4cb0e6a) into 10.1 (d40581c) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##               10.1    #5343   +/-   ##
=========================================
  Coverage     85.00%   85.01%           
- Complexity     6059     6060    +1     
=========================================
  Files           651      651           
  Lines         19232    19235    +3     
=========================================
+ Hits          16349    16352    +3     
  Misses         2883     2883           
Impacted Files Coverage Δ
src/Framework/TestCase.php 84.30% <100.00%> (+0.05%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@cosmastech cosmastech changed the base branch from main to 10.1 May 1, 2023 15:32
@cosmastech cosmastech force-pushed the issue-5342_distinct-output-buffering-risky-messages branch from d36a8a8 to 01b797b Compare May 1, 2023 15:34
@cosmastech cosmastech force-pushed the issue-5342_distinct-output-buffering-risky-messages branch from 01b797b to 4cb0e6a Compare May 1, 2023 15:41
@cosmastech
Copy link
Contributor Author

Can you please send this against 10.1 (instead of against main)? Thanks!

Done. Thank you!

@sebastianbergmann sebastianbergmann merged commit 415d38f into sebastianbergmann:10.1 May 2, 2023
@sebastianbergmann sebastianbergmann changed the title Provide distinct messages when test is marked risky due to output buffering level from TestCase@stopOutputBuffering() Provide distinct messages when a test is considered risky due to output buffering level mismatch May 2, 2023
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