Course in Unit Testing in C++ with Google Test

Course in writing C++ unit tests using Google Test

Do not write one single production code without having a associated unit-test. In this course we go straight to the point and teach you how to use Google Test to write solid unit-tests.
This is what you will learn
  • Download, install and compile Google Test
  • Writing unit test functions
  • Writing tests using fixture classes
  • Configure JetBrains CLion to run tests within the IDE
  • Genereate XML output for further processing, such as HTML reports in Jenkins
Course Contents

Unit testing in C++

We start with a brief discussion of various alternatives for unit testing in C++

    Installation of Google Test

    How to download, install and compile Google Test. How to configure JetBrains CLion IDE to run the test within the IDE.

      Simple tests

      How to write simple test functions, using expectation and assertions

        Test fixtures

        How to write test functions using fixture classes

          User defined assertions

          How to create user-defined assertions

            Testing abnormal program termination

            How to test program crashes

              Value parameterized tests

              How to create value and type parameterized tests

                Test output

                Discussion of various test output format

                  What is Mock objects

                  What is Google Mock and how can it be utilized

                    Other Unit Testing Frameworks

                    Overview of other unit testing frameworks for C++

                      Facts
                      NameUnit Testing in C++ with Google Test
                      Duration1 Days
                      LevelIntermediate
                      AudienceExperienced C++ programmers
                      PrerequisitesKnowledge about Modern C++
                      Tools
                      • GCC/G++ compiler, version 8 or later
                      • Jetbrains CLion IDE
                      • Ubuntu Linux @ VirtualBox or WLS @ Windows-10
                      On-Site Course

                      If you order an On-Site course, we will come to you and hold the course in your office. The price is determined by our price model and is based on the number of course days, number of participants and any travel and lodging.

                      Read more about out price modell and term of sales here.

                      Related Courses
                      CourseDaysLevel
                      C++ Supplementary3 IntermediateShow
                      Threads Programming using Modern C++3AdvancedShow
                      Linux Systems Programming using Modern C++3AdvancedShow
                      C++ 11/14/17 for C++ Programmers3IntermediateShow