Repository navigation
test(cli): reduce the flakiness of Spinner test cases - #4844
Merged
Merged
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4844 +/- ##
=======================================
Coverage 91.97% 91.97%
=======================================
Files 487 487
Lines 41539 41539
Branches 5365 5365
=======================================
Hits 38207 38207
Misses 3274 3274
Partials 58 58 ☔ View full report in Codecov by Sentry. |
iuioiua
approved these changes
May 23, 2024
| `${LINE_CLEAR}\u001b[32m⠹${COLOR_RESET} `; // Green | ||
|
|
||
| assertStringIncludes(text, expectedStr); | ||
| assertStringIncludes(text, `${LINE_CLEAR}\u001b[30m⠋${COLOR_RESET} `); // includes black spinner |
Contributor
There was a problem hiding this comment.
We could use black() from std/fmt/colors, right?
Contributor
Author
There was a problem hiding this comment.
Good point, but it looks like std/fmt/colors and std/cli/spinner use different codes (0 vs 39) for resetting the colors. I'm not sure it's fine to align them. Leaving this as is for now.
Contributor
There was a problem hiding this comment.
That's strange. Can we create an issue for that so we can investigate further?
Spinner test cases
satyarohith
pushed a commit
that referenced
this pull request
May 23, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #4775