-
Notifications
You must be signed in to change notification settings - Fork 25
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
lc/colorful human report output #209
lc/colorful human report output #209
Conversation
e.g the following is now valid and previous is would have failed `--classnames=" ATest , SecondTest "` is valid and not just `--classnames="ATest,SecondTest"`
Test Results - Pass tests outcomes shown as a green pass badge. - Fail tests outcome shown as a red pass badge. - Stack trace shown below the test name, in the same column. Easier to follow + parse and takes up less width in the terminal output. - Coverage shown in green if 75 or over, red otherwise Summary - Summary moved to bottom of output with new Failed tests section below that. Allows user to determine if errors exists without scrolling to top for a long time. Useful if terminal has lots of previous output. - passed, failed + skipped figures show in green, red + yellow. - passed, failed + skipped values show as a number with the rate in bracets. - Coverage shown in green if 75 or over, red otherwise - Failed Tests -New section in the Human Report which shows only the failed test at the bottom of the termnal output in the same format as Test Results section (if any exist).
Hi @lukecotter thank you so much for contributing! These changes look awesome - @smaddox-sf is our PM so I'll defer to her on making any updates to the human-readable output. @smaddox-sf any thoughts about making these updates to the output for the |
Hi @lukecotter - Thank you for the willingness to contribute! In a previous version of these commands, we had color coding. However, adding the colors doesn't meet our accessibility standards, so colorizing the output is not an option. |
Do you think the others changes are useful? I can remove the colouring and leave the rest if it is only colours that are the problem. Alternatively I can add a flag Let me know what you think. |
Hi @lukecotter - Thanks for the willingness to work with us on this one!! Adding the Test Failures would be a great benefit along with some of the other improvements. We would need a couple other changes to move forward:
The rest of the improvements look great (pending our internal testing and an engineering review of the code, of course). On the colors, the default command output cannot have the color coding. However, we could add an optional flag to add the colors. I agree they look nice but we must lead with accessibility. If you are interested in this approach, we'll take it to our internal CLI review board to work out the flag name and can come back to you with the approved name. |
@lukecotter - Since we are simplifying our branch strategy and deleting our 'develop' branch, we will have to close this PR for now. We would love to revisit to include these changes in 'main'. |
I forgot I needed to make changes, I will revisit in the new year. |
What does this PR do?
Test Results
Easier to follow + parse and takes up less width in the terminal output.
Summary
Allows user to determine if errors exists without scrolling to top for a long time. Useful if terminal has lots of previous output.
Failed Tests
-New section in the Human Report which shows only the failed test at the bottom of the terminal output in the same format as Test Results section (if any exist).
I have already implemented the above feature in the related pull request.
It also makes two other changes
e.g
--classnames=" ATest , SecondTest "
is valid and not just--classnames="ATest,SecondTest"
instead of
What issues does this PR fix or reference?
Closes #208
Functionality Before
Functionality After