# File api and test cases

**URL:** https://discourse.cmake.org/t/file-api-and-test-cases/1408
**Category:** Development
**Created:** [June 18, 2020, 10:34pm UTC](https://discourse.cmake.org/t/file-api-and-test-cases/1408 "2020-06-18T22:34:37Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)
#### Post date: [June 18, 2020, 10:34pm UTC](https://discourse.cmake.org/t/file-api-and-test-cases/1408/1 "2020-06-18T22:34:37Z")

</div>

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.

---

_[View the full topic](https://discourse.cmake.org/t/file-api-and-test-cases/1408)._
