Skip to content

neotest-python not respecting pytest.ini testpaths #102

@DavidHospital

Description

@DavidHospital

Hello, I've just started using neotest and neotest-python, so apologies if the solution to my problem is answered somewhere else.

I have a project which uses pytest, and I have a pytest.ini file which specifies:

testpaths = tests/unit

The project also has some other directories with tests in them which should not be run with pytest. when I run pytest using CLI, it only runs tests within tests/unit as expected.

However when using neotest-python in neotest, it discovers all tests in the project, not just one the ones in tests/unit. Is this behaviour possible to achieve?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions