Question: Canonical way to enable tests for developers?
Hi,
I was wondering if there is a canonical way to enable tests that should only be run by the code developers, and not as part of a more general make test
scenario. For example, say there is a project that is using TDD, and you add tests for a new feature which is only partially implemented, and in particular you have tests that are for parts of this new feature that are yet to be implemented. Or alternatively, your project depends on an upstream project, in which the latest release introduces a bug, or makes breaking API changes that you haven't been able to completely address yet, and you want to add developer specific tests to handle these cases.
For example, is there a way to detect from within the CMakeLists.txt
if -Wdev
was passed? Is there a test property that I'm not seeing?
Thanks, Zaak
My "Zen of CMake":
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're @brad.king.😛