Skip to content

Conversation

@disrupted
Copy link

@disrupted disrupted commented Feb 1, 2026

I recently added the overseer.nvim integration for neotest. I noticed that it always reports the pytest runs as SUCCESS even if the tests failed. When using the pytest CLI directly it reports a non-zero exit code in those cases as expected. Since we wrap the pytest execution with the custom neotest.py script we need to propagate the exit code back to the caller.
I confirmed using pytest that it's now working. I also tried to add support for the other test runner (unittest and django_unittest) but since I don't use those I didn't test them.

@disrupted disrupted changed the title fix(pytest): propagate exit code fix: propagate exit code Feb 1, 2026
@disrupted disrupted marked this pull request as ready for review February 1, 2026 15:43
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

Successfully merging this pull request may close these issues.

1 participant