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

[BUG] Parametrized Show as Failed #317

Closed
duncanam opened this issue Nov 14, 2023 · 3 comments
Closed

[BUG] Parametrized Show as Failed #317

duncanam opened this issue Nov 14, 2023 · 3 comments

Comments

@duncanam
Copy link

NeoVim Version
v0.9.4

Describe the bug
Parametrize Python tests show as failed- instead of a green checkmark, it shows a red X. I do get a "n tests passed" popup. This X shows in both the summary and editor window.

To Reproduce
Install latest, run a Python test that is parametrized with pytest.parametrize. I think the latest version started doing this, as the previous does not.

Expected behavior
Green checkbox instead of red X for passing Python parametrize tests.

Logs
N/A at the moment

Additional context
Failed Python parametrize tests do correctly "red X" the failed test section.

@duncanam duncanam changed the title [BUG] [BUG] Parametrized Show as Failed Nov 15, 2023
@UN-9BOT
Copy link

UN-9BOT commented Nov 15, 2023

add this line to your neotest-python config

pytest_discover_instances = true,

nvim-neotest/neotest-python@ff20740

@duncanam
Copy link
Author

add this line to your neotest-python config

pytest_discover_instances = true,

nvim-neotest/neotest-python@ff20740

I missed this, thanks! I'll check it out tomorrow and report back.

@duncanam
Copy link
Author

The above fixed it! I can even open up individual parametrized tests in the summary window and run them individually! Thanks all!

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

2 participants