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

Add --quiet flag to run-tests.php #16443

Draft
wants to merge 1 commit into
base: PHP-8.2
Choose a base branch
from

Conversation

iluuu1994
Copy link
Member

The large amount of output is annoying when working locally. Especially when running a single test repeatedly, the terminal buffer quickly gets filled.

Targetting 8.2 because conditionally passing the flag in scripts is annoying.

The large amount of output is annoying when working locally. Especially when
running a single test repeatedly, the terminal buffer quickly gets filled.
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MSTM

@cmb69
Copy link
Member

cmb69 commented Oct 15, 2024

I have no issue with this PR, but see https://askubuntu.com/questions/25077/how-to-really-clear-the-terminal.

@iluuu1994
Copy link
Member Author

What I often do in my workflow:

  • Make a change to php-src
  • Run all tests
  • Fix a test by tweaking the source and re-running it
  • Go to the next test

By the time I'm ready to move on to the next test, my buffer has been completely filled with useless information about my machine, which yes, is indeed the same one it was 2 seconds ago. 😛 It's not a huge issue, but it's annoyed me since 2020. 😄

@iluuu1994
Copy link
Member Author

Oh, I also just discovered the -l flag in run-tests.php I was unaware of. That's going to help a lot!

@cmb69
Copy link
Member

cmb69 commented Oct 15, 2024

If -l solves the issue for you fine, but I guess the --quiet option still can make sense for such workflows.

@iluuu1994
Copy link
Member Author

I agree, I would like less output regardless. I'd still like to improve this by making the summary less noisy when running singular tests.

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.

3 participants