Cannot get pytest to work with VSCode : vscode
www.reddit.com › r › vscodeThe acsr.py file is in the root of my application (parent directory of tests) and contains the functions I wish to test. I checked the VS Code, and pytest documentation to see if I was missing some configuration options but didn't find anything. It appears that under VS Code, pytest can't figure out the sys.path or something.
Testing Python in Visual Studio Code
code.visualstudio.com › docs › pythonSpecifies whether pytest is enabled as the test framework. The equivalent setting for unittest should be disabled. pytestPath "pytest" Path to pytest. Use a full path if pytest is located outside the current environment. pytestArgs [] Arguments to pass to pytest, where each element that's separated by a space is a separate item in the list.