Making PyPI's test suite 81% faster - The Trail of Bits Blog
Making PyPI's test suite 81% faster - The Trail of Bits Blog
pytest-xdist
でテストの並列化
coveragepy
のcombineとreport
sitecustomize.py
による調整
しかしこれは手元でうまくいっていない
pytest, xdist, coverage
にまとめた
Python-3.12 から導入された
sys.monitoring
の利用
pytest
のテスト探索パスを絞ることで起動処理を高速化
Pythonのimportに時間がかかっている箇所の確認と削減
遅いテストのプロファイリング
実際のコード
https://github.com/pypi/warehouse/tree/main
と合わせてblogを読むと、色々がんばってたどり着いたッぽいことがよく分かる。