diff --git a/ecs/crm-datafetch/Pipfile b/ecs/crm-datafetch/Pipfile index 990beb4b..82796598 100644 --- a/ecs/crm-datafetch/Pipfile +++ b/ecs/crm-datafetch/Pipfile @@ -5,8 +5,8 @@ name = "pypi" [scripts] test = "pytest tests/" -"test:cov" = "pytest --cov=src tests/" -"test:report" = "pytest --cov=src --html=.report/test_result.html tests/" +"test:cov" = "pytest --cov=src --cov-branch --cov-report=term-missing tests/" +"test:report" = "pytest --cov=src --cov-branch --cov-report=term-missing --html=.report/test_result.html tests/" [packages] boto3 = "*" diff --git a/ecs/crm-datafetch/README.md b/ecs/crm-datafetch/README.md index 9d580fa5..034cf2d4 100644 --- a/ecs/crm-datafetch/README.md +++ b/ecs/crm-datafetch/README.md @@ -145,6 +145,12 @@ pipenv install --dev pipenv run test:cov ``` +#### 拡張機能:Python Test Explorer UIを導入する場合 + +- VSCodeの拡張機能メニューから、「Python Test Explorer for Visual Studio Code」をインストール +- コマンドパレットから「Python Configure Tests」を選択、「Pytest」を選択 +- テストメニュー(フラスコのマーク)から、テストを実行することができるようになる + #### 各コマンドの説明 - `pipenv run test`