C++ Unit Testing Fundamentals Using Catch2
By Dror Helper
Course info



Course info



Description
Writing unit tests is a big part of being a good software developer. Unfortunately, unit testing in C++ is far from being trivial, and good unit testing frameworks are hard to find. In this course, C++ Unit Testing Fundamentals Using Catch2, you will learn how to write robust unit tests using Catch2, a simple-to-use yet flexible and powerful unit testing framework for C++. You will learn what makes Catch2 different from other xUnit frameworks, and how it can be used to write unit tests for your C++ code. You will also get to see how to run Catch2 from the command line, how to use test fixtures, and how to create maintainable tests. When you're finished with this course, you will have a foundational knowledge of Catch2 and unit testing in C++ that would help you create better, cleaner C++ code.
Section Introduction Transcripts
Course Overview
Hi everyone. My name is Dror Helper, and welcome to my course, C++ Unit Testing Fundamentals Using Catch2. I'm a software developer, architect, and consultant who cares about his code and enjoys teaching other developers how to write better code. This course is not about yet another unit testing framework. It's about writing good unit tests in C++. In my experience, writing readable, sustainable, and robust unit tests is crucial for successful software development. In this course, we are going to learn how to write good, robust unit tests using Catch2, a simple, yet powerful and flexible unit testing framework for C++. Some of the major topics that we will cover include what makes Catch2 different from other unit testing frameworks, and, in fact, what makes it better than other unit testing frameworks out there, how to write good unit tests and what does a good unit test mean, how to run your unit tests from a command line using Catch2 and special tags, and why we care about test failures and how to get the most out of them. And finally, we are going to talk about how to reduce duplicate code in your tests while maintaining readability. By the end of this course, you'll know how to write unit tests in C++ using Catch2 in order to create better and cleaner C++ code. Before beginning this course, you should be familiar with C++. So in case you need a refresher, check out one of the excellent C++ Pluralsight courses on this subject. I hope you'll join me on this journey to learn all about unit testing and what makes Catch2 an excellent unit testing framework with the C++ Unit Testing Fundamentals Using Catch2 course, at Pluralsight.