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
No documented way to use only the PHPUnit (10) printer #297
Comments
@Bilge You can use this extension that uses Collision: https://github.com/robiningelbrecht/phpunit-pretty-print |
OK, but that seems like it does a lot more than just enable Collision, what with the Chuck Norris quotes and other unnecessary guff. In reality, isn't this the single and only line that is actually needed to enable the printer? |
@Bilge Everything is disabled by default. |
I imagine you could just run it in the bootstrap file, no? |
@Bilge That might an option as well indeed, never tried this before. |
It seems this is wrong. There appears to be some autoload trick going on that causes However, when I do this, although the printer is enabled, the output is messed up as it is now a mish-mash of Collision and PHPUnit output (it outputs the dots ( If I use your extension, the dots go away, but the text is still illegible. Presumably the dots are fixed by instructing PHPUnit to omit its own test output as here: https://github.com/robiningelbrecht/phpunit-pretty-print/blob/5d42dbf9d92a6299d3307d59b1a67c9eba22e065/src/PhpUnitExtension.php#L24C18-L24C39 What is strange about this is that there does not appear to be any equivalent call in Collision itself. But how do we even know Collision v7 even works with PHPUnit, considering its own test suite does not appear to activate the printer at all? Aside, the text colour in v6 was also grey, but a lot lighter. |
@Bilge yeah indeed, you need to disable PHPUnit10's output, forgot about that, sorry.
Because the extension you are referring to has it's own test suite and proves it works? |
Previously non-Laravel projects had the option to use |
Yeah but why wouldn't everyone be using Laravel, the best static framework where everything is static and what even is concurrency safety anyway? |
If one wishes to only use the PHPUnit 10 printer, it is unclear how to do this, since there is no extension to bootstrap.
The text was updated successfully, but these errors were encountered: