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 summary not printed #878

Closed
SherinBloemendaal opened this issue Sep 1, 2024 · 1 comment
Closed

Testdox summary not printed #878

SherinBloemendaal opened this issue Sep 1, 2024 · 1 comment

Comments

@SherinBloemendaal
Copy link

Q A
ParaTest version 7.5.2
PHPUnit version 11.3.1
PHP version 8.3.11

Summary

Since PHPUnit 11 the testdox summary was removed (sebastianbergmann/phpunit#5318), but it was being brought back in PHPUnit version 11.3.

Current behavior

When running ParaTest with the testdoxSummary="true" in phpunit.xml.dist no summary is shown after the tests ran. When running PHPUnit directly it is shown afterwards.

How to reproduce: command, code and error stack trace

ParaTest command:
php -dpcov.enabled=1 -dmemory_limit=-1 vendor/bin/paratest -p 12 --passthru-php="'-d' 'pcov.enabled=1' '-d' 'memory_limit=-1'" --colors=never --coverage-text=php://stdout --log-junit junit_report.xml

PHPUnit command:
php -dpcov.enabled=1 -dmemory_limit=-1 vendor/bin/phpunit --colors=never --coverage-text=php://stdout --log-junit junit_report.xml

Expected behavior

The testdox summary to be outputted when it is being enabled via configuration (testdoxSummary=true) or parameter (--testdox-summary).

@Slamdunk
Copy link
Member

Slamdunk commented Sep 2, 2024

I'm sorry but this conflicts with the need of exposing PHPUnit Errors/Warnings/Deprecations, see #774
The way the summary is coded in PHPUnit doesn't let ParaTest have both the errors and the summary, and between the two the former is more important.

@Slamdunk Slamdunk closed this as completed Sep 2, 2024
@Slamdunk Slamdunk closed this as not planned Won't fix, can't repro, duplicate, stale Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants