nvim-neotest / neotest

An extensible framework for interacting with tests within NeoVim.
MIT License
2.13k stars 105 forks source link

[BUG] Parametrized Show as Failed #317

Closed duncanam closed 8 months ago

duncanam commented 8 months ago

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.

UN-9BOT commented 8 months ago

add this line to your neotest-python config

pytest_discover_instances = true,

https://github.com/nvim-neotest/neotest-python/commit/ff20740633ce6381abd7d9137aba89e0690367e2

duncanam commented 8 months ago

add this line to your neotest-python config

pytest_discover_instances = true,

https://github.com/nvim-neotest/neotest-python/commit/ff20740633ce6381abd7d9137aba89e0690367e2

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

duncanam commented 8 months ago

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