File api and test cases

Does the file api enumerate test cases? I thought there was a change that introduced that, but I couldn’t find anything in CMake’s gitlab, so I’m probably misremembering. The main reason I’m asking is that if it does, then the DISCOVERY_MODE option added to gtest_discover_tests() in CMake 3.18 would be a potential problem - test cases wouldn’t be known at CMake generation time.

The final set of test cases is not known until ctest runs. CTest now has a --show-only=json-v1 option that is its equivalent to CMake’s fileapi.

Ah, yes that would be what I was thinking of, thanks.