How to Configure/Run Google Test for MFC application on Visual Studio 2022

Vankadara, Suresh 6 Reputation points
2022-06-28T11:54:05.28+00:00

Dear Team,

I'm using VS2022 and running MFC application.

I couldn't run [or maybe couldn't configure ] Google test for my MFC application. When checked Google test with Console application it works straight away.

Can you please help me resolving on how to configure Google test for MFC application on VS2022 and run the tests? Thank you.

Regards,
Suresh

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,757 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
351 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Guido Franzke 2,196 Reputation points
    2022-06-28T13:21:12.193+00:00

    Hello,
    try this: how-to-use-google-test-for-cpp
    Regards, Guido


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.