Skip to content

Commit 9fb5a78

Browse files
committed
Add instructions to setup vs code test runner
1 parent 4817c91 commit 9fb5a78

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,3 +1087,21 @@ python3 manage.py test
10871087
```sh
10881088
copy .githooks\pre-push .git\hooks\pre-push
10891089
```
1090+
1091+
15. Setup VS Code test runner
1092+
1093+
- Add manage.py path variable in `.env` file
1094+
1095+
```env
1096+
MANAGE_PY_PATH=manage.py
1097+
```
1098+
1099+
- Configure VS Code to for test runner in `.vscode/settings.json`
1100+
1101+
```json
1102+
{
1103+
"python.testing.unittestEnabled": true,
1104+
"python.testing.pytestEnabled": false,
1105+
"python.testing.unittestArgs": ["-p", "*test*.py"]
1106+
}
1107+
```

0 commit comments

Comments
 (0)