Merge branch 'feature-NEWDWH2021-630' into feature-NEWDWH2021-644-controller

This commit is contained in:
shimoda.m@nds-tyo.co.jp 2022-08-03 15:59:44 +09:00
commit dba0060130
2 changed files with 8 additions and 2 deletions

View File

@ -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 = "*"

View File

@ -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`