-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Increase contrast of test results #245
Conversation
Thanks for your effort, @h0adp0re! Can you please take care of the broken CI steps? |
Thanks for the library! Sure, it's the |
2633819
to
4fe733e
Compare
More broken tests on the CI @h0adp0re 🙏🏻 |
Hmm, I will have to think about this. I thought I mitigated the missing |
@Chemaclass @antonio-gg-dev @khru If no such decision can be made at this time, I will have to revert the migration to Edit: on the one hand omitting escape codes from snapshots gives users the opportunity to use |
My vote is for keeping the behavior of bashunit as consistent across environments as possible, so I would only remove the use of tput while maintaining the changes in colors and spacing as you indicate. On the other hand, omitting the escape codes from the snapshots seems like an interesting feature, but verbosely, as an alternative type of snapshot assertion, I would always maintain that the default behavior includes them. |
Yes, everything you said makes sense. I am up for adding
My order of preference is |
Hi @h0adp0re ! For now, work on 1.i so we can close this PR and keep it more concise with a single improvement. You can work on 1.ii next if you want, but as I said, we want bashunit to operate well-covered and consistent across different environments, so even with this new assertion, it's best if our acceptance tests don't use it. If tput is so inconsistent across environments, to me this means discarding its use. |
Hey, thanks for confirming. I took a small break from this problem to process it properly and I agree, I will do that. Atomic changes are traceable and maintainable. And, in the end, all I wanted to achieve was the contrast change. I might take on And at the risk of sounding repetitive — I still do recommend using |
Thank you very much for understanding @h0adp0re , of course, take all the time you need and don't feel pressured to do it. If at any point you decide not to continue, just let us know and we will take care of it from there. We greatly appreciate the time you're dedicating to bashunit and, of course, we're going to consider the use of tput (or an alternative) now that we're aware of the problem we have and the advantages of using this tool. But as I mentioned before, we're not comfortable making large changes that have a significant impact on bashunit overall (and this is evident by the number of tests that fail or would need to be changed), so for now, this is the reason why we prefer to set it aside for a more in-depth investigation. I have created these 2 issues (#246 and #247) to not lose the progress that has emerged from this PR and to know where to continue. |
Thanks for the issues, I can do the changes tomorrow. |
8af4aef
to
1fb50ec
Compare
tput
, increase contrast of test report 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.
Is this change necessary? It does make the test more readable, but the use of variables may defeat the purpose of the test.
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.
I agree that using app global variables removes part of the test's purpose, but it's as simple as redeclaring them locally (with different names) within the test and not using the application's global ones.
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.
I think it's all done now.
1fb50ec
to
19ca2f6
Compare
Thank you very much @h0adp0re for contributing to bashunit! |
📚 Description
Improve test report contrast.
Before
After
🔖 Changes
.editorconfig
to specify as little as possible, making the file more readable.The root cause of this change was neovim not respecting the defined indents for
.sh
files.✅ To-do list
CHANGELOG.md
to reflect the new feature or fix