C++ Testing with Frameworks: Google & Catch v2.x
Автор: Educational Bytes
Загружено: 2023-09-28
Просмотров: 1703
In this lecture we cover some of the basics relating to using testing frameworks to test C++ codes and demonstrate Google Test and Catch v1.x framework uses. All errors encountered while live coding were definitely pre-planned for educational purposes 🙂
This lecture with a live demonstration was created for use within the Fall 2023 offering of CS 251 at the University of Illinois Chicago.
RandomBag Implementation Video:
• C++ Classes with a Random Bag Data Structure
Coding Implementations From Video:
https://github.com/atkoehler/educatio...
Catch 2.x Single Header:
https://github.com/catchorg/Catch2/bl...
Google Test Framework:
https://google.github.io/googletest/
https://github.com/google/googletest
00:00 - Welcome!
00:30 - Basic Testing Recap
02:48 - Testing Frameworks Overview
04:30 - Catch Framework
08:45 - Google Test Framework
13:13 - Which to use?
14:50 - Demo in VS Code
14:51 - Code Overview & Comparisons
19:05 - Google Test Failure Demo
20:32 - The makefile
21:11 - Writing Google Test for remove
32:15 - Updating RandomBag to Demo Failure
33:55 - Failing in Google Test Framework
36:00 - Notes on When & Why We Write Tests
38:34 - Failing in Catch Framework
40:40 - Wrap it up!
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: