nvim-neotest / neotest-python

MIT License
126 stars 38 forks source link

Run fails due to 'Config missing "rootpath" attribute' #21

Closed dpopchev closed 1 year ago

dpopchev commented 1 year ago

even for as simple file as

import pytest

def test_a():
  assert False

when cursor is on test_a run fails when :lua require("neotest").run.run(); NOTE -- when passing --collect-only via args the window corectly reports found tests.

During the testing, there is a running jedi_language_server recognizing project.

image

rcarriga commented 1 year ago

I'm guessing you're using a pretty old version of pytest. I've switched to using a different property of the config that should work but I'm not sure if there will other issues.

dpopchev commented 1 year ago

I should have figure this earlier -- due to working in restricted environment pytest-4.6.9 Switched to venv with pytest-7.1.3 and all is fine.