docs: README修正
This commit is contained in:
parent
526cce1d42
commit
a610b9f2d8
@ -6,8 +6,8 @@ name = "pypi"
|
||||
[scripts]
|
||||
test = "pytest 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/"
|
||||
"test:walk-through" = "pytest tests/ --walk-through"
|
||||
"test:report" = "pytest --cov=src --cov-branch --cov-report=term-missing --html=.report/unit_test/test_result.html tests/"
|
||||
"test:walk-through" = "pytest tests/test_walk_through.py --walk-through --cov-report=term-missing --html=.report/walk_through/test_result.html"
|
||||
|
||||
[packages]
|
||||
boto3 = "*"
|
||||
|
||||
@ -146,6 +146,19 @@ pipenv install --dev
|
||||
pipenv run test:cov
|
||||
```
|
||||
|
||||
#### 一気通貫テストを実行する場合の設定
|
||||
|
||||
- `.env`の以下に示す環境変数の値をメルク様提供のFullSandboxのものに書き換える
|
||||
- CRM_AUTH_DOMAIN
|
||||
- CRM_USER_NAME
|
||||
- CRM_USER_PASSWORD
|
||||
- CRM_USER_SECURITY_TOKEN
|
||||
- 以下のコマンドを実行して単体テストを起動する
|
||||
|
||||
```sh
|
||||
pipenv run test:walk-through
|
||||
```
|
||||
|
||||
#### 拡張機能:Python Test Explorer UIを導入する場合
|
||||
|
||||
- VSCodeの拡張機能メニューから、「Python Test Explorer for Visual Studio Code」をインストール
|
||||
@ -163,6 +176,9 @@ pipenv run test:cov
|
||||
- `pipenv run test:report`
|
||||
- pytestのテスト終了時にテスト結果をHTMLで出力する
|
||||
- `.report/test_result.html`が出力される
|
||||
- `test:walk-through`
|
||||
- 一気通貫テストが実行される
|
||||
- 上記のテスト意外はスキップされる
|
||||
|
||||
## 単体テストの追加方法
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user