-
Notifications
You must be signed in to change notification settings - Fork 508
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
⚠️ Switch Outcome
type to string
#4006
Conversation
Originally, these were introduced as ints to enable ordering between them. Today, I don't see the value in doing that, and it makes the output less readable. Signed-off-by: Spencer Schrock <[email protected]>
previously, OutcomeNegative had the integer value of 0. So some tests didnt specify the outcome and happened to pass due to the zero value. This also fixes the tests names while I was here. Signed-off-by: Spencer Schrock <[email protected]>
this change demonstrates the reason for this PR. Human readable outcomes are good! Signed-off-by: Spencer Schrock <[email protected]>
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #4006 +/- ##
==========================================
+ Coverage 66.70% 70.49% +3.79%
==========================================
Files 223 223
Lines 16070 16070
==========================================
+ Hits 10719 11329 +610
+ Misses 4688 4021 -667
- Partials 663 720 +57 |
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.
You'll do the change from positive/negative -> true/false in another PR I suppose. LGTM
Yes. And that will also be 2 changes so the important changes don't get lost in a big diff.
|
What kind of change does this PR introduce?
structured result cleanup which is technically a breaking change
What is the current behavior?
Outcome is an int based type
What is the new behavior (if this is a feature change)?**
Outcome is a string based type, which leads to better output format
Which issue(s) this PR fixes
Related to #2928 (comment)
Special notes for your reviewer
Does this PR introduce a user-facing change?
For user-facing changes, please add a concise, human-readable release note to
the
release-note
(In particular, describe what changes users might need to make in their
application as a result of this pull request.)