rectorphp / rector-phpunit

Rector upgrade rules for PHPUnit
http://getrector.com
MIT License
61 stars 46 forks source link

Make AddSeeTestAnnotationRector slightly more performant as very slow, keep existing see annotations #343

Closed TomasVotruba closed 1 week ago

TomasVotruba commented 1 week ago

I've added phpunit code quality set to Rector core, and it got slowed down a lot.

After bit testing, this rule itself cost 20 % of the runtime. Probably because checking all the possible namespace positions for tests class names.

Saying that, it should be run just once intentionally.