Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to just run pytest on open buffer without modifying is_test_file? #85

Open
dseravalli opened this issue Oct 16, 2024 · 0 comments

Comments

@dseravalli
Copy link

dseravalli commented Oct 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant