You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a python file like foo.py that does not end or start with test_ but contains test methods that start with test_, is there a way to just run pytest on the current buffer, like what !pytest "%" would do basically, but via Neotest. I understand I could provide my own is_test_file function that scans python files for test_ method but wondering if there is a way to force Neotest to consider the active buffer a test file and just run pytest on it on an as-needed basis.
The text was updated successfully, but these errors were encountered:
If I have a python file like
foo.py
that does not end or start withtest_
but contains test methods that start withtest_
, is there a way to just run pytest on the current buffer, like what!pytest "%"
would do basically, but via Neotest. I understand I could provide my ownis_test_file
function that scans python files fortest_
method but wondering if there is a way to force Neotest to consider the active buffer a test file and just runpytest
on it on an as-needed basis.The text was updated successfully, but these errors were encountered: