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>
)