profile
viewpoint

Ask questionsFix python.testing.cwd resolution

Settings:

{
   "python.pythonPath": "python",
   "python.testing.pytestEnabled": true,
   "python.testing.cwd": "test"
}

Error during discovery:

2020-06-09T10:30:35.956Z info at 'pytest' [pytest runner]: Discovering tests using python path 'python' in test
2020-06-09T10:30:35.957Z info at 'pytest' [pytest runner]: Running pytest wrapper with arguments: --collect-only,--doctest-modules
2020-06-09T10:30:35.961Z crit at 'pytest' [pytest runner]: Test loading failed: Error occurred during process execution: Error: spawn python ENOENT

Changing python.testing.cwd to ./test or an absolute path fixes the problem.

kondratyev-nv/vscode-python-test-adapter

Answer questions kondratyev-nv

Fixed in release 0.4.3.

useful!

Related questions

No questions were found.
Github User Rank List