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

Testdox spinner cannot be disabled (and can be too verbose) #3513

Closed
BafS opened this issue Feb 5, 2019 · 2 comments
Closed

Testdox spinner cannot be disabled (and can be too verbose) #3513

BafS opened this issue Feb 5, 2019 · 2 comments
Assignees

Comments

@BafS
Copy link

BafS commented Feb 5, 2019

Q A
PHPUnit version 8.0.1
PHP version 7.2
Installation Method Composer

Since PHPUnit 8 I have pages of "running tests ◓" (introduced by #3497) with the testdox option on my CI (it does support ANSI codes but it cannot clear all output). Could we have an option to disable the spinner (eg. --no-progress) or to detect if the output support it ? I want to keep the colors.

The current workaround is to extends CliTestDoxPrinter.php.

image

Thanks in advance

@epdenouden
Copy link
Contributor

@BafS Of course! The spinner should never get in your way. I will gladly make it more optional, I will start working on a config option and get a pull request tomorrow.

Question: what type of terminal/$TERM does this happen in and what CLI-options or phpunit.xml flags do you use? I'm guessing the terminal supports color but not all rendering or interactive features.

Thank you for taking the time to file an issue about this, by the way. Good to have it fixed.

@BafS
Copy link
Author

BafS commented Feb 5, 2019

@epdenouden Thank you for your message ! The "terminal" is the default gitlab web terminal.

[root@runner-5dda6155-project-56-concurrent-0 /]# echo $TERM;
xterm

The "problem" is just that it outputs the stream directly without clearing anything. It's not an interactive terminal when you run the tests but more an STDOUT stream.

I simply use --testdox --no-cover and the xml options are

 backupGlobals="false"
 backupStaticAttributes="false"
 verbose="true"
 colors="true"
 convertErrorsToExceptions="true"
 convertNoticesToExceptions="true"
 convertWarningsToExceptions="true"
 processIsolation="false"
 stopOnFailure="false"

Thanks for your help

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

No branches or pull requests

2 participants