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

Implement option to disable Testdox progress animation #3528

Merged
merged 4 commits into from
Feb 14, 2019
Merged

Implement option to disable Testdox progress animation #3528

merged 4 commits into from
Feb 14, 2019

Conversation

epdenouden
Copy link
Contributor

@epdenouden epdenouden commented Feb 13, 2019

Implements #3513 allowing the user to disable the Testdox progress animation.

Changes

  • add --no-interaction command line option
  • add noInteraction attribute for XML-configuration files
  • update configuration unit tests and CLI option tests

Unfortunately I did not manage to get a screenshot.

@epdenouden epdenouden changed the title Implement --no-progress CLI option to disable --testdox progress animation Implement option to disable Testdox progress animation Feb 13, 2019
@codecov
Copy link

codecov bot commented Feb 13, 2019

Codecov Report

Merging #3528 into master will increase coverage by <.01%.
The diff coverage is 96.92%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #3528      +/-   ##
============================================
+ Coverage     82.84%   82.85%   +<.01%     
- Complexity     3694     3701       +7     
============================================
  Files           144      144              
  Lines          9637     9654      +17     
============================================
+ Hits           7984     7999      +15     
- Misses         1653     1655       +2
Impacted Files Coverage Δ Complexity Δ
src/Util/Configuration.php 96.32% <100%> (+0.02%) 181 <0> (+1) ⬆️
src/TextUI/Command.php 71.37% <100%> (+0.14%) 209 <0> (+1) ⬆️
src/Util/TestDox/TestDoxPrinter.php 78.68% <83.33%> (+0.24%) 58 <1> (+3) ⬆️
src/TextUI/TestRunner.php 68.16% <98.07%> (+0.04%) 295 <0> (+2) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eeba3b8...e7fbc22. Read the comment docs.

@sebastianbergmann sebastianbergmann added this to the PHPUnit 8.1 milestone Feb 14, 2019
@sebastianbergmann sebastianbergmann added the type/enhancement A new idea that should be implemented label Feb 14, 2019
@sebastianbergmann
Copy link
Owner

Thanks!

I am not sure I like the --no-progress and noProgress names. They can be misunderstood as "no progress output at all".

@epdenouden
Copy link
Contributor Author

Agreed, the dot-printer also shows progress without animation. It seems --no-progress is relatively common as a GNU-style --arg

I'll change it to '--no-spinner' as I don't think there'll be any other new animations

@sebastianbergmann
Copy link
Owner

Sounds reasonable. Thanks!

@epdenouden
Copy link
Contributor Author

While changing the name I just noticed this that composer has a --no-interaction flag which seems perfect and is already used by another large PHP project. Even better I think :)

@sebastianbergmann sebastianbergmann merged commit 534f8f3 into sebastianbergmann:master Feb 14, 2019
@epdenouden epdenouden deleted the issue-3513-testdox-spinner-needs-to-sit-down-and-listen branch February 14, 2019 10:09
@Bilge
Copy link
Contributor

Bilge commented Dec 4, 2023

This fundamentally misunderstands what no interaction actually means. In the context of Composer it makes sense because we indicate we are not willing or able to interact with the application via terminal (i.e. with readline) thus the application should make a best guess as to which default action should make the most sense in lieu of any user input. In this context, there is no user interaction in either case: this is just an animation spinner; the user cannot interact with it in any way. This should have just been --no-spinner as originally indicated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement A new idea that should be implemented
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants