Skip to content

Could not run the unit test #363

Answered by VyvaHart
laurenceyu2020 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @laurenceyu2020

Seems like the system can't find directory you provide (ENOENT). Check all paths one more time
if in your case it is not the solution, try:

  • open VS settings.json: type >preferences: open user settings (json) in VS code search bar above and edit settings.json file.
    you probably will have smth like that:
{
  "python.testing.pytestEnabled": true,
  "python.testing.unittestEnabled": false,
  "python.testing.pytestArgs": [
    "unit_tests"
  ],
  "python.envFile": "${workspaceFolder}/unit_tests/.pixi/envs"
}

remove .pixi in the path ("python.envFile": "${workspaceFolder}/unit_tests/envs") and try to run it again

or

if in your case .pixi folder is necessary try to create t…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@laurenceyu2020
Comment options

@VyvaHart
Comment options

@laurenceyu2020
Comment options

Answer selected by laurenceyu2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants