From fbde8356015aa81d5531f286b92e9791efa5a003 Mon Sep 17 00:00:00 2001 From: scito Date: Sun, 4 Sep 2022 19:02:36 +0000 Subject: [PATCH] enable pytest in vscode and mention it in README --- README.md | 9 +++++++++ extract_otp_secret_keys.code-workspace | 5 ++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8b404e5..0dcc361 100644 --- a/README.md +++ b/README.md @@ -122,3 +122,12 @@ Run tests: ``` python -m unittest ``` + +### VSCode Setup + +Setup for running the tests in VSCode. + +1. Open VSCode command palette (Ctrl-Shift-P) +2. Type command "Python: Configure Tests" +3. Choose unittest or pytest. (pytest is recommended, both are supported) +4. Set ". Root" directory diff --git a/extract_otp_secret_keys.code-workspace b/extract_otp_secret_keys.code-workspace index 362d7c2..fa59c7e 100644 --- a/extract_otp_secret_keys.code-workspace +++ b/extract_otp_secret_keys.code-workspace @@ -3,5 +3,8 @@ { "path": "." } - ] + ], + "settings": { + "python.testing.pytestEnabled": true + } } \ No newline at end of file