Skip to content

pytest-cmake does not discover new tests #50

@AmeyaVSingh

Description

@AmeyaVSingh

When developing tests using pytest.

The pytest_discover_tests cmake function does not automatically update new tests if new tests are implemented.
In the build directory if not cleaned every time.

Possible workaround to explicitly list the python sources as dependencies under pytest_discover_tests function.

pytest_discover_tests(
    PythonTest
    DEPENDS <list of python test files>
)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions