-
Notifications
You must be signed in to change notification settings - Fork 1
CIで実行しないテストを、Pytestのmarkers機能で指定する #680
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
現状
CIで実行するテストは(WebAPIにアクセスしないテスト)は、ファイル名がtest_local*.pyのものに限定しています。
| poetry run pytest tests/test_local*.py |
この方法だと、テスト用のファイルにWebAPIに関係しないテストメソッドがあっても、このテストメソッドをCIで実行することができません。
やりたいこと
Pytestのmarkers機能を使って、CIで実行しないテストを指定できるようにしたいです。
poetry run pytest -n auto -m "not access_webapi"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request