-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
test: use pytest-forked lib to run test in forked process #5263
Conversation
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.
Apply same change to cd.yml
Codecov Report
@@ Coverage Diff @@
## master #5263 +/- ##
===========================================
+ Coverage 64.81% 75.11% +10.29%
===========================================
Files 98 100 +2
Lines 6387 6433 +46
===========================================
+ Hits 4140 4832 +692
+ Misses 2247 1601 -646
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
tests/unit/test_yamlparser.py
Outdated
@@ -120,6 +120,7 @@ def test_encoder_name_env_replace(): | |||
|
|||
|
|||
def test_encoder_name_dict_replace(): | |||
os.environ['BE_TEST_NAME'] = 'hello123' |
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.
can u please use a fixture to set the env variable and reset afterwards? this is done in many other places
@JoanFM I haven't added the arguments to the |
if it guarantees non-flakyness, I would still pay the price, however there must be some way to solve this |
Unfortunately the pytest-forked plugin isn't currently maintained. This open issue is causing the |
The whole test code for
|
Some tests might still be flaky due to the incompatibility with the |
if it is not mantained, I would remove this |
The pytest-forked library currently doesn't have a maintainer and the open issue with |
Goals: