C++ Unit Testing Fundamentals Using Catch

Writing unit tests is a big part of being a professional software developer. This course would teach you how to write readable and robust unit tests using Catch, a simple, yet powerful unit testing framework.

Course info

Rating

(29)

Level

Beginner

Updated

October 21, 2016

Duration

1h 38m

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 Catch, you will learn how to write robust unit tests using Catch, a simple-to-use, yet flexible and powerful unit testing framework for C++. You will learn what makes Catch 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 Catch 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 Catch and unit testing in C++ that would help you create better, cleaner C++ code.

About the author

Dror is a Software developer, architect, and consultant who likes to help software developers write better code. He's a public speaker and blogger. Dror teaches, mentors, and writes code using clean code principles, TDD, and BDD.

More from the author

Transcript

I am a Software developer, architect and a 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 about writing good unit in C++. Because I found out that 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 CATCH - a simple to use yet powerful and flexible unit testing framework for C++.

Some of the major topics that we will cover include:
1. Why CATCH is better than other unit testing frameworks
2. Writing good unit tests using CATCH
3. Run your tests from command line
4. Why we care about test failures and how to get the most out of them
5. How to reduce duplicate code in your tests while maintaining readability.

By the end this course, you’ll know how to write unit tests in C++ using CATCH in order to create better and cleaner C++ code.

Before beginning the course you should be familiar with C++ so in case you need a refresher check out one of the excellent C++ PluralSight courses on the subject.

I hope you’ll join me on this journey to learn all about unit testing and what makes CATCH an excellent unit testing framework with the C++ unit testing foundemantals using CATCH course, at Pluralsight.