pytest

基本的な使い方

  • pytest ヘビー🐍ユーザーへの第一歩

    • https://www.m3tech.blog/entry/pytest-summary

fixtureが便利

  • 参考

    • https://qiita.com/akiyama/items/9ead227227d669b0564e

pytest-watch

  • ファイル変更を検知し、自動で再テストしてくれる。

  • 参考

    • Pythonのpytest-watchモジュールでテスト駆動開発が捗った

      • https://qiita.com/kai_kou/items/2a494289f6b28da3361a

pytestでprintデバッグしたい

  • sオプションをつければOK

$ pytest -s

Last updated