How to Add GoogleTest To Your C++ Project (C++ unit testing)

preview_player
Показать описание
Watch me learn how to add GoogleTest unit tests to your C++ project.

Timestamps:
00:00 - 2:15 Intro
2:15 - 4:50 Unit Testing Frameworks Overview
4:51 - 11:05 Example Project Setup
11:06 - 12:00 ReSharper Attempt (unsuccessful)
12:01 - 14:36 GoogleTest as VS Component (successful)
14:37 - 16:11 Some Comments
16:12 - 22:03 GoogleTest with CMake (successful)
22:04 - Outro
Рекомендации по теме
Комментарии
Автор

Awesome bro, please keep it up don't stop

kannadacoder
Автор

That was very helpful. I'm usually do test via CMake and googletest but in the VSCode, not Visual Studio.
So this was very interesting, because never done such approach.
I would like to recommend to do configure and build cmake commands via console.
Which is more sufficient. And also you can do powershell or bash scripts to automize running via console

onemoremagistr
Автор

Thanks. It's useful for me, after I searching on google, but seldom blogs or webpage can work on my develop environment( CMake + VS 2022 + googletest).

martinzhang
Автор


Anyway, thanks for the really helpful video! I also appreciate that you showed the problems that you encountered and the steps you took to try and solve them. I think more developers should do that so we can learn from each other more effectively.

aaronsalenga
Автор

Hi, is there a way to use google test on classes ?

TriNguyen-uoyv
Автор

WhenI right-click on the UnitTest Project there is no option for unit Test.... Why do these kind of tutorials never work?

Seff