Skip to content
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

fix: test result shown as failed when a subtest fails #228

Merged
merged 3 commits into from
Jan 20, 2023
Merged

fix: test result shown as failed when a subtest fails #228

merged 3 commits into from
Jan 20, 2023

Conversation

yannpoupon
Copy link
Contributor

Fix the issue that the test is shown as passed when a subtest failed.

@codecov
Copy link

codecov bot commented Jan 19, 2023

Codecov Report

Merging #228 (b414f66) into master (15bf26d) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #228   +/-   ##
=======================================
  Coverage   95.41%   95.41%           
=======================================
  Files          72       72           
  Lines        5584     5589    +5     
=======================================
+ Hits         5328     5333    +5     
  Misses        256      256           
Impacted Files Coverage Δ
src/pykiso/test_result/text_result.py 97.47% <100.00%> (+0.11%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sebclrsn sebclrsn requested review from sebclrsn, Pog3k and TedRio and removed request for sebclrsn January 20, 2023 08:03
:param err: tuple returned by sys.exc_info
"""
super().addSubTest(test, subtest, err)
if err is not None:
Copy link
Contributor

@sebclrsn sebclrsn Jan 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Best way of doing it! :)

@sebastianpfischer sebastianpfischer merged commit ae4202a into eclipse:master Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants