Learning by doing
Trainers with practical experience
Detailed course material
Clear content description
Tailormade content possible
Training that proceeds
In the course C++ Unit Testing, participants learn to use the Google Test Framework for C++ and Google Mock for C++ for C++ Unit Testing. Google Test and Google Mock are among the most widely used frameworks for Unit Testing, but if desired, the course can also be provided in another test framework such as Boost.Test, Catch2 or Doctest.
The course C++ Unit Testing starts with an introduction to Unit Testing that focusses on testing individual units in the source code. A unit is the smallest part of the code that can be tested in isolation, such as a function or a method of a class.
Subsequently after an overview of other forms of testing, extensive attention is paid to the Google Test Framework. The structure and setup of Test Cases and Fixtures in Google Test is discussed.
The various types of assertions are also treated with explicit success or failure handling. Special attention is paid to exception assertions, floating point comparisons and the use of regular expressions.
Then the course C++ Unit Testing will cover creating parameterized tests, parameter passing and type-parameterized tests. Test events and event listeners are also discussed.
Also part of the program of the course C++ Unit Testing is the methodology of Test Driven Development (TDD). The three rules of TDD and the steps in TDD are explained and the benefits and limitations of TDD are discussed.
Finally the course C++ Unit Testing ends with the treatment of the use of stubs and mocks. The use of the Google Mock Framework is explained here.
The course C++ Unit Testing is intended for developers who want to use C++ to write unit tests with the C++ Unit Test Framework Google Test and Google Mock for C++
To participate in this course knowledge of and experience with programming in C++ is required.
The theory is discussed on the basis of presentation slides and is interchanged with exercises. Illustrative demos are used to clarify the concepts discussed. The course times are from 9.30 am to 16.30 pm.
After successful completion of the training participants receive an official certificate C++ Unit Testing.
Module 1 : Unit Testing Intro
Module 2 : Google Test
Module 3 : Assertions
What is Unit Testing?
Benefits of Unit Testing
Time to Test
Unit Test Example
Other Types of Testing
Invoking the Tests
Set-Up and Tear-Down
Explicit Success and Failure
Regular Expression Syntax
Using Assertions in Sub-routines
Adding Traces to Assertions
Propagating Fatal Failures
Asserting on Subroutines
Module 4 : Parameterized Tests
Module 5 : Test Driven Development
Module 6 : Google Mock
Value Parameterized Tests
Reading Input Data
Using Event Listeners
Traditional Testing versus TDD
Three Rules of TDD
Steps in TDD
Benefits of TDD
Limitations of TDD
Testing versus Design
Behavior Driven Development
Designing for Testing
Test using Mock
Writing Mock Classes
Using Mocks in Tests
Matchers and Cardinalities
Using Multiple Expectations
Ordered vs Unordered Calls
All our courses are classroom courses in which the students are guided through the material on the basis of an experienced trainer with in-depth material knowledge. Theory is always interspersed with exercises.
We also do custom classes and then adjust the course content to your wishes. On request we will also discuss your practical cases.
The course times are from 9.30 to 16.30. But we are flexible in this. Sometimes people have to bring children to the daycare and other times are more convenient for them. In good consultation we can then agree on different course times.
We take care of the computers on which the course can be held. The software required for the course has already been installed on these computers. You do not have to bring a laptop to participate in the course. If you prefer to work on your own laptop, you can take it with you if you wish. The required software is then installed at the start of the course.
Our courses are generally given with Open Source software such as Eclipse, IntelliJ, Tomcat, Pycharm, Anaconda and Netbeans. You will receive the digital course material to take home after the course.
The course includes lunch that we use in a restaurant within walking distance of the course room.
The courses are planned at various places in the country. A course takes place at a location if at least 3 people register for that location. If there are registrations for different locations, the course will take place at our main location, Houten which is just below Utrecht. A course at our main location also takes place with 2 registrations and regularly with 1 registration. And we also do courses at the customer’s location if they appreciate that.
At the end of each course, participants are requested to evaluate the course in terms of course content, course material, trainer and location. The evaluation form can be found at https://www.klantenvertellen.nl/reviews/1039545/spiraltrain?lang=en. The evaluations of previous participants and previous courses can also be found there.
The intellectual property rights of the published course content, also referred to as an information sheet, belong to SpiralTrain. It is not allowed to publish the course information, the information sheet, in written or digital form without the explicit permission of SpiralTrain. The course content is to be understood as the description of the course content in sentences as well as the division of the course into modules and topics in the modules.