Closed damiani closed 6 years ago
Can't wait for this fix to be implemented! I ran into the same issue.
beautiful
@benjamincrozat @devinfd This PR has been merged, now available in 0.4.0
version
@damiani Thanks for PR, this has been on my "todo" list for quite sometime, but been slammed of late
@mikeerickson Happy to help!
Already got it. Looks great, thanks!
Devin
On Dec 22, 2017, at 7:52 AM, Keith Damiani notifications@github.com wrote:
@mikeerickson https://github.com/mikeerickson Happy to help!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mikeerickson/phpunit-pretty-result-printer/pull/6#issuecomment-353624010, or mute the thread https://github.com/notifications/unsubscribe-auth/AAclr8NoS-JZszup_KXL00V1FkakW2Z1ks5tC9AygaJpZM4RKp5T.
@devinfd 👍
This PR fixes two display issues:
Truncated class names
Class names get aggressively truncated unless the terminal window is quite wide. For example, when the window is 120 columns wide, the output looks like this:
Instead, this PR respects the
maxClassNameLength
setting (which I've adjusted to 50 characters):When the window is too narrow for that many characters, it splits the class name / results display into two columns of equal widths. The result looks like this:
Wrapping of test results
If test results extend beyond the edge of the window, they don't wrap/indent properly. Current behavior:
This fixes the display so 2nd and subsequent lines of results for a single test will properly wrap and align with the start of the previous line: