-
Notifications
You must be signed in to change notification settings - Fork 18
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
trunner: add formatting to subresult message with newlines #385
base: master
Are you sure you want to change the base?
Conversation
b6fc6a7
to
c852029
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, LGTM
I'm just thinking if we should go with a fixed spacing , it might look better, in my opinion. What do you think @damianloew ?
Why do we need this? IMHO no offset is OK (as subresults are indented, so everything with "negative indent" is clearly distinguishable)? Using |
c852029
to
867c9a9
Compare
Thanks for the visual example. Some notes:
If the above is a non-issue, we can merge it. |
Yes, trailing new lines in 1 line message is from harness, but this harness took into account that pr and Maybe when (subtest name + longest fail message from msg lines) < some_edge_value. |
Nah, this PR handles only writing to screen case, it will still look ugly in XML output. Please correct the msg on harness side if possible.
IMHO we should always present the result in the same way - otherwise the user might get confused. I'm ok with custom per-test indentation if we acknowledge the potential drawbacks. I also don't have a problem with not-indenting multiline messages (as it's done for normal test results). Feel free to choose the solution you think works best. |
I think it is still clear to the user when FAIL status and some indented text below is presented and IMHO it is the most readable |
008f035
to
bd5d912
Compare
bd5d912
to
faf8d14
Compare
JIRA: CI-519
Description
Motivation and Context
Types of changes
How Has This Been Tested?
Checklist:
Special treatment