pytest: 単体テストメモ
#memo
カバレッジは気にしない
VSCode + pytest の場合は,
Coverage Gutters
を使うことで,どこがカバーされているかを簡単にチェックできる
python -m pytest --cov=jaspice --cov-branch --cov-report=xml
でXML出力
→ Coverage GuttersがXMLを読み込んで,カバー部分を色づけてくれる
https://gyazo.com/f6a37d5a1a4ae74d4d8a63e4d6670bfe
https://t-wada.hatenablog.jp/entry/should-we-test-private-methods