Code coverage through unit tests running in sub-processes/threads: Locally and automated on GitHub
#PyCon_APAC_2022
https://tw.pycon.org/2022/en-us/conference/talk/243
https://docs.google.com/presentation/d/1Iji1klGczzQ4DxN6-E-zfEN5oPMMs2LZtD482-plGAM/edit?usp=sharing
規模が大きめなOSSのメンテナの方
#coverage の設定を解説
.coveragerc
GitHub Action: Codecov(TODO 調べる)
マルチスレッドでもうまくいく
サブプロセスでは? ーうまくいかない
Measuring coverage in those sub-processes can be tricky because you have to modify the code spawning the process to invoke coverage.py. (ドキュメント)
slide=24:サブプロセスでの.coveragerc
coverage combineも呼び出している!