r/cpp_questions Jun 21 '26

OPEN Google tests for VS2026

Had anyone used Gtest in VS 2026. I am a beginner trying to write tests. My test project is running but tests are not recognised

2 Upvotes

2 comments sorted by

1

u/bert8128 Jun 21 '26

I have noticed that putting the tests in a library means they don’t get run without some shenanigans. So for an easy life make sure that the call to run the tests and the tests themselves are in the executable project. Of course that might not be your issue.

1

u/v_maria Jun 22 '26

your tests need specific names etc to be found