GoogleTest: gtest_discover_tests() cannot pass lists for property values
The PROPERTIES
keyword in the gtest_discover_tests()
function of the GoogleTest module is intended to allow a project to define properties to be set on each discovered test. This only works, however, for single-valued properties. If a property requires a list value (which a number of them can), there does not appear to be a way to pass that through. Consider this example:
gtest_discover_tests(myTarget PROPERTIES LABELS "one;two")
This eventually results in the following call in the generated myTarget[1]_tests.cmake
file:
set_tests_properties( mytests.someTestCase PROPERTIES ... LABELS one two)
I have been unable to find any combination of quoting which would allow the label list to be preserved.