-
Notifications
You must be signed in to change notification settings - Fork 8
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
functional tests - override runner for better output #1091
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1091 +/- ##
===========================================
+ Coverage 96.02% 96.04% +0.01%
===========================================
Files 138 133 -5
Lines 3248 3183 -65
===========================================
- Hits 3119 3057 -62
+ Misses 129 126 -3 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
File comparision analysis report🔖 Info
Click to show memory sections
📝 SummaryClick to show summary
🗺️ Map files diff outputClick to show diff list
|
File comparision analysis report🔖 Info
Click to show memory sections
📝 SummaryClick to show summary
🗺️ Map files diff outputClick to show diff list
|
243b756
to
ed0b9db
Compare
ed0b9db
to
015324c
Compare
56c6c0e
to
59e881a
Compare
015324c
to
4f4dc2b
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.
LGTM
}; | ||
|
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.
Just an extra reminder here to remove this commit before merging
4f4dc2b
to
8f37713
Compare
auto on(ut::events::test_end test_end) -> void | ||
{ | ||
if (asserts_.fail > fails_) { | ||
++tests_.fail; | ||
printer_ << '\n'; | ||
printer_ << "Running \"" << test_end.name << "\"..."; | ||
printer_ << printer_.colors().fail << "FAILED" << printer_.colors().none << '\n'; | ||
} else { | ||
++tests_.pass; | ||
printer_ << '\n'; | ||
printer_ << "Running \"" << test_end.name << "\"..."; | ||
printer_ << printer_.colors().pass << "PASSED" << printer_.colors().none << '\n'; | ||
} | ||
} |
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.
The test is ended, it is not running anymore. Moreover previous format is different since it is on one line.
I suggest two things:
- Do as default implementation by putting at the end
FAILED
orPASSED
- As unit test rendering, replace Running by
OK
/FAILED
orResult of
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.
auto on(ut::events::test_end test_end) -> void | |
{ | |
if (asserts_.fail > fails_) { | |
++tests_.fail; | |
printer_ << '\n'; | |
printer_ << "Running \"" << test_end.name << "\"..."; | |
printer_ << printer_.colors().fail << "FAILED" << printer_.colors().none << '\n'; | |
} else { | |
++tests_.pass; | |
printer_ << '\n'; | |
printer_ << "Running \"" << test_end.name << "\"..."; | |
printer_ << printer_.colors().pass << "PASSED" << printer_.colors().none << '\n'; | |
} | |
} | |
auto on(ut::events::test_end test_end) -> void | |
{ | |
if (asserts_.fail > fails_) { | |
++tests_.fail; | |
printer_ << printer_.colors().fail << "FAILED" << printer_.colors().none << '\n'; | |
} else { | |
++tests_.pass; | |
printer_ << printer_.colors().pass << "PASSED" << printer_.colors().none << '\n'; | |
} | |
} |
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.
auto on(ut::events::test_end test_end) -> void | |
{ | |
if (asserts_.fail > fails_) { | |
++tests_.fail; | |
printer_ << '\n'; | |
printer_ << "Running \"" << test_end.name << "\"..."; | |
printer_ << printer_.colors().fail << "FAILED" << printer_.colors().none << '\n'; | |
} else { | |
++tests_.pass; | |
printer_ << '\n'; | |
printer_ << "Running \"" << test_end.name << "\"..."; | |
printer_ << printer_.colors().pass << "PASSED" << printer_.colors().none << '\n'; | |
} | |
} | |
auto on(ut::events::test_end test_end) -> void | |
{ | |
if (asserts_.fail > fails_) { | |
++tests_.fail; | |
printer_ << '\n'; | |
printer_ << "Result of \"" << test_end.name << "\"..."; | |
printer_ << printer_.colors().fail << "FAILED" << printer_.colors().none << '\n'; | |
} else { | |
++tests_.pass; | |
printer_ << '\n'; | |
printer_ << "Result of \"" << test_end.name << "\"..."; | |
printer_ << printer_.colors().pass << "PASSED" << printer_.colors().none << '\n'; | |
} | |
} |
Example of unit test:
8f37713
to
6fac88d
Compare
6fac88d
to
fa2b6d4
Compare
Kudos, SonarCloud Quality Gate passed! |
No description provided.