Skip to content

Commit

Permalink
.vscode/settings.json: Add workspace settings for unit tests
Browse files Browse the repository at this point in the history
Adds a VS Code workspace settings file to define the
"python.testing.unittestArgs" for running Python unit tests.

This allows unit tests to automatically be recognized and shown
in VS Code Test Explorer.

Without this change, the tests are not shown in Test Explorer
and an error message is output to Output -> Python window due to
the test root directory not being valid.

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
  • Loading branch information
makubacki committed Oct 5, 2022
1 parent 87c566e commit 3e11a94
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"python.testing.unittestArgs": [
"-v",
"-s",
"${workspaceRoot}/edk2toollib",
"-p",
"*_test.py"
],
"python.testing.pytestEnabled": false,
"python.testing.unittestEnabled": true,
"python.linting.flake8Enabled": true,
"python.linting.enabled": true
}

0 comments on commit 3e11a94

Please sign in to comment.