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

Deprecation warnings in >2.0 #224

Open
evang522 opened this issue Jan 31, 2024 · 1 comment
Open

Deprecation warnings in >2.0 #224

evang522 opened this issue Jan 31, 2024 · 1 comment
Milestone

Comments

@evang522
Copy link

The class src/Logs/TestHook/Deprecation.php implements PHPUnit's \PHPUnit\Event\Test\DeprecationTriggeredSubscriber.

This means that every time a deprecation is triggered in PHPUnit tests, it is reported by paraunit. (In our case, it also includes deprecations triggered by vendors' code usage / dependencies). But PHPUnit itself doesn't do this kind of reporting by default.

Perhaps I've missed an important setting somewhere. Is it possible to suppress these deprecations? It becomes a bit difficult to see the results of our rather large test suites when there are so many deprecations being reported.

If it's helpful, I created a repository with minimal packages to demonstrate the deprecations with paraunit and the lack thereof in phpunit.

https://github.com/evang522/demo-paraunit-deprecations

Thanks!

@Jean85
Copy link
Member

Jean85 commented Jan 31, 2024

No you're right, Paraunit's behavior was like this since the previous major, and now PHPUnit started handling deprecations explicitly and we didn't align it to that.

It probably makes sense to do that while implementing #197, since --show-deprecations is the right switch for this.

@Jean85 Jean85 added this to the 2.3 milestone Jan 31, 2024
@Jean85 Jean85 modified the milestones: 2.3, 2.4 Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants