VS2022 Test Explorer isn't showing tests written with GTest in a CMake project
I spent most of the day yesterday trying to get a GTest CMake project to work in VS2022. Everything builds and compiles but test explorer won't show any tests. Hitting Run All causes it to sit in an infinite loop not progressing. I've produced a minimal repro here https://github.com/GingerbreadFred/GoogleTestRepro/. The CMakeLists for the project is below cmake_minimum_required(VERSION 3.5) project(HelloWorldTest) set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED ON) include(FetchContent) FetchContent_Declare( googletest URL https://github.com/google/googletest/archive/f8d7d77c0693631
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.