Error: Process exited with code 4: ERROR: file or directory not found in vscode

x·2023년 5월 15일
0

error

목록 보기
1/4
post-thumbnail

settings.json에 테스트 디렉토리의 상위 디렉토리를 명시해야 함

테스트 디렉토리가 tests라면 pytestArgs에 그것보다 상위 디렉토리를 작성해주면 됨

{
    "python.testing.pytestArgs": [
        "flask",
        "flask/app",
    ],
    "python.testing.unittestEnabled": false,
    "python.testing.pytestEnabled": true,
    "pythonTestExplorer.testFramework": "pytest",
    "python.testing.autoTestDiscoverOnSaveEnabled": true,
}

0개의 댓글