-
Notifications
You must be signed in to change notification settings - Fork 2
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
Outputs both TAP and default PHPUnit formatting #31
Comments
In general, having non-TAP-lines between the TAP output is not a problem according to the TAP spec. However, depending on the consumer implementation, it might become an issue that the TAP version header ( I don't know if its possible to suppress the original output, as php 10+ removed custom result printers. You can use a designated output file as a workaround: <bootstrap class="nikeee\PhpunitTap\TapExtension">
<parameter name="fileName" value="output.tap"/>
</bootstrap> |
As an aside, perhaps you'd consider chiming in at pestphp/pest/issues/1350. |
Open to PR (keep in mind that I'll reject AI-generated code or PRs). |
PR #32 produces the following result. Thanks for taking the time to look this over for me. |
Description:
When using the
nikeee\PhpunitTap\TapExtension
configured via the<extensions>
block inphpunit.xml
, both TAP formatted output and the default PHPUnit text output are shown. The expected behavior is to have only the TAP output printed to stdout.Environment:
Steps to Reproduce:
phpunit.xml
configuration.Add a test file (e.g.,
tests/FunctionsTest.php
) containing both passing tests and a failing test. For example:Run PHPUnit from the command line:
Actual Output:
Expected Output:
Only the TAP formatted output should be printed (for example):
There should be no additional default PHPUnit summary output (header, progress dots, and final summary).
Please advise if this is an intended behavior, a configuration issue, or a bug. Any assistance or a workaround would be greatly appreciated.
The text was updated successfully, but these errors were encountered: