-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Different number of test per line #137
Comments
Not a bug. The number of tests shown per line depends on the length of the string that represents the total number of tests: |
Is there a command line flag or other argument/config that can be supplied to set the desired line width in newer versions of the package? I don't find one documented anywhere. |
@mrmarkfrench The output is designed to fit into a
I don't really see why it would be useful to make it configurable but then again as long as it is xml configuration only (no new cli switches) It might not hurt ether. |
@edorian Yeah, I found the line of code. I was just hoping that there was a solution I could handle in my configs, rather than needing to modify that line of code each time I upgrade to a new version of the package. I understand that it is set to fit on an 80-column terminal, but this is no longer 1978, and I don't code on a VT100, so some flexibility to allow me to use more columns (and as a result fewer lines) would be helpful in my development environment. I grant you that lots of people still use 80-column terminals, so I think that's a great default, but the option to change it with a config would be a nice piece of flexibility. |
phpunit could use in cases when it is not set, sticking to 80 is a sane fallback |
I like the suggestion of using the COLUMNS variable. I'd implement it like that if @sebastianbergmann also likes it :) |
Fine by me. Thanks! |
The LINES and COLUMNS variables are not populated/exported to php and are not available via getenv or $_ENV by default. The usable workarounds* seems to ether rely on seldomly installed extensions or on exec calls both of which don't make much sense to me for that usecase. It's a shame. I'd like to have the feature even so to me, to be honest, it doesn't look all that great on a 180 col layout having only 8 very long lines for ~2k tests. But thats presumably just me being used to that. If someone knows a way to access this vars without using exec I'd like to hear it. For now the only thing I could see us doing is to allow for a http://stackoverflow.com/questions/2203437/how-to-get-linux-console-columns-and-rows-from-php-cli |
In bash, one should explicitly In zsh it is exported by default, I think. But I might be wrong |
I run functional tests (selenium with real browsers) using phpunit and it takes some time to finish. If it was parameterized - I would just set the width to something between |
Hello. I would like to change the number of columns that phpunit is using to output test results to 140 columns. I am using Linux and phpunut 4.2.2. built in Codeception. Is there any easy way to do this ? Thanks |
Hi,
don't know if it is a bug or a feature but after upgrading from 3.5.6 to 3.5.10 the number of tests shown per line differs from one test suite to the other.
Examples:
or here:
The text was updated successfully, but these errors were encountered: