mikeerickson / phpunit-pretty-result-printer

PHPUnit Pretty Result Printer -- make your PHPUnit tests look pretty!
MIT License
1.2k stars 71 forks source link

[Feature Request] Add a setting to specify test name length being displayed #144

Open andreasschroth opened 5 years ago

andreasschroth commented 5 years ago

I can see that we have some tests like this being displayed: ...lVerificationTypeTest.

Unfortunately, there are a few different classes ending with VerificationTypeTest, thus it's very hard to reason about the specific class. It would be awesome, if a setting could be added specifying the test name length that should be displayed.

bt0r commented 5 years ago

Hello @andreasschroth i've done a PR to disable classname formating (see #152 ) Do you think it can fit your needs or you really want to be able to check classname length in the config file ? (in case of i can add another option to change classname max length)

andreasschroth commented 5 years ago

@bt0r Thanks for the PR. Imo, a setting to specify the classname length would be better (and then e.g. 0 for showing the full class name) as it just gives more possibility and I think different projects might require different settings here for best developer usability. I mean, basically being able to differentiate the class names from each other should be sufficient.

But disabling the classname formatting is already an improvement I would for example enable on the project with the example mentioned above.

michaelnguyen2021 commented 5 years ago

any updates on this PR? This feature is very helpful as I am having similar tests ending the same. It hard to see when the class names are truncated.

mikeerickson commented 5 years ago

I will work on getting this added for the next release. I am working on a few other items which will be part of new release as well, when those are done I will get this added and publish new release

aManNamedJed commented 4 years ago

I posted in the PR but I agree that this is a helpful feature. Thank you for your hard work on this, tests look way better! 🎊