pytest test session starts very slow sometimes
See original GitHub issueit seems that pytest
happens stuck on “test session starts” sometimes, can anyone give me a hint?
# sample
base_args = ["--pyargs", "halphas", "-s", "-v", "--disable-warnings", "-rsxX","--show-capture=stdout", "--show-capture=stderr"]
logger.info("......start......")
sys.exit(pytest.main(base_args))

pytest==6.2.5 python==3.7.12
Issue Analytics
- State:
- Created a year ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Very slow test setup in pytest 4.2.0+ · Issue #4824 - GitHub
I found a performance degradation in a particular version. I run pytest --setuponly tests/chainer_tests > /dev/null command. pytest version ...
Read more >How to speed up pytest - python - Stack Overflow
Collecting tests ran incredibly slow. It turned out to be my antivirus software (Avast) that was causing the problem. When I disabled the ......
Read more >Basic patterns and examples — pytest documentation
Sometimes a test session might get stuck and there might be no easy way to figure out which test got stuck, for example...
Read more >pytest Documentation - Read the Docs
pytest -m slow. Will run all tests which are decorated with the @pytest.mark.slow decorator. For more information see marks.
Read more >How To Improve Appium Test Speed and Reliability - HeadSpin
Let's face it, Appium tests have sometimes been accused of being slow and ... This is a good start, but it still doesn't...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
thanks all! @nicoddemus, according to your suggestion, i found and resolved this problem. The point is
reportportal
which provided byEpam
, whenpytest
session started,reportportal
will send some client info togoogle analytics
, however the network is inaccessible sometimes cause of company internal security policy. after comment related code block, everything seems to be working fine.Good luck with you