nvim-neotest / neotest-python

MIT License
126 stars 38 forks source link

Deselected tests are considered failed #13

Closed christoph-blessing closed 2 years ago

christoph-blessing commented 2 years ago

Consider the following test:

@pytest.mark.slow
def test_foo():
    assert True

We can deselect this test using the following command:

pytest -m 'not slow' tests

This will run all tests in tests that are not marked slow. We can do the same using neotest but unfortunately the deselected tests will be considered failed which is incorrect because they did not run in the first place. I think it would be better to consider them skipped or their status unknown.

rcarriga commented 2 years ago

This should now be working as expected :smile:

christoph-blessing commented 2 years ago

Yup, works perfectly now. Thanks a lot! :)