Opleiding: C++ Unit Testing

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.

Intro Unit Testing

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.

Test Cases

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.

Assertions

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.

Test Parameters

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.

Test Driven Development

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.

Mocks en Stubs

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.

Audience Course C++ Unit Testing

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++

Prerequisites Course C++ Unit Testing

To participate in this course knowledge of and experience with programming in C++ is required.

Realization Training C++ Unit Testing

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.

Certification course C++ Unit Testing

After successful completion of the training participants receive an official certificate C++ Unit Testing.

Modules

Module 1 : Unit Testing Intro

  • What is Unit Testing?
  • Benefits of Unit Testing
  • Manual Testing
  • Automated Testing
  • Time to Test
  • Unit Test Example
  • Best Practices
  • Other Types of Testing
  • Continuous Integration
  • Regression Testing
  • Usability Testing

Module 2 : Google Test

  • Basic Concepts
  • Test Cases
  • Assertions
  • Failures
  • Basic Assertions
  • Binary Comparison
  • String Comparison
  • Simple Tests
  • Test Fixtures
  • Invoking the Tests
  • Set-Up and Tear-Down

Module 3 : Assertions

  • Explicit Success and Failure
  • Exception Assertions
  • Predicate Assertions
  • Predicate-Formatters
  • Floating-Point Comparison
  • Type Assertions
  • Regular Expression Syntax
  • Using Assertions in Sub-routines
  • Adding Traces to Assertions
  • Propagating Fatal Failures
  • Asserting on Subroutines

Module 4 : Parameterized Tests

  • Value Parameterized Tests
  • Reading Input Data
  • Passing Parameters
  • General Syntax
  • Typed Tests
  • Type-Parameterized Tests
  • Test Events
  • Event Listeners
  • Using Event Listeners
  • Disabling Tests
  • Enabling Disabled

Module 5 : Test Driven Development

  • Traditional Testing versus TDD
  • Three Rules of TDD
  • Steps in TDD
  • Test Cycles
  • Benefits of TDD
  • Limitations of TDD
  • Testing versus Design
  • TDD Adaptation
  • Behavior Driven Development
  • Designing for Testing
  • Code Kata’s

Module 6 : Google Mock

  • Mock Objects
  • Collaborating Objects
  • Mock Implementation
  • Test using Mock
  • Anti Patterns
  • Writing Mock Classes
  • Using Mocks in Tests
  • Setting Expectations
  • Matchers and Cardinalities
  • Using Multiple Expectations
  • Ordered vs Unordered Calls
Meer...
€1.499
ex. BTW
Aangeboden door
SpiralTrain
Onderwerp
Unit Testing
Software Testing
Niveau
Duur
2 dagen
Looptijd
12 dagen
Taal
en
Type product
cursus
Lesvorm
Klassikaal
Aantal deelnemers
Max: 12
Tijdstip
Overdag
Tijden en locaties
Amsterdam
wo 15 jul. 2026
Eindhoven
wo 15 jul. 2026
Houten
wo 15 jul. 2026
Rotterdam
wo 15 jul. 2026
Utrecht
wo 15 jul. 2026
Zwolle
wo 15 jul. 2026
Amsterdam
wo 16 sep. 2026
Eindhoven
wo 16 sep. 2026
Houten
wo 16 sep. 2026
Rotterdam
wo 16 sep. 2026
Utrecht
wo 16 sep. 2026
Zwolle
wo 16 sep. 2026
Amsterdam
wo 18 nov. 2026
Eindhoven
wo 18 nov. 2026
Houten
wo 18 nov. 2026
Rotterdam
wo 18 nov. 2026
Utrecht
wo 18 nov. 2026
Zwolle
wo 18 nov. 2026
Amsterdam
wo 13 jan. 2027
Eindhoven
wo 13 jan. 2027
Houten
wo 13 jan. 2027
Rotterdam
wo 13 jan. 2027
Utrecht
wo 13 jan. 2027
Zwolle
wo 13 jan. 2027
Amsterdam
wo 17 mrt. 2027
Eindhoven
wo 17 mrt. 2027
Houten
wo 17 mrt. 2027
Rotterdam
wo 17 mrt. 2027
Utrecht
wo 17 mrt. 2027
Zwolle
wo 17 mrt. 2027
Amsterdam
wo 12 mei 2027
Eindhoven
wo 12 mei 2027
Houten
wo 12 mei 2027
Rotterdam
wo 12 mei 2027
Utrecht
wo 12 mei 2027
Zwolle
wo 12 mei 2027
Amsterdam
wo 14 jul. 2027
Eindhoven
wo 14 jul. 2027
Houten
wo 14 jul. 2027
Rotterdam
wo 14 jul. 2027
Utrecht
wo 14 jul. 2027
Zwolle
wo 14 jul. 2027
Amsterdam
wo 15 sep. 2027
Eindhoven
wo 15 sep. 2027
Houten
wo 15 sep. 2027
Rotterdam
wo 15 sep. 2027
Utrecht
wo 15 sep. 2027
Zwolle
wo 15 sep. 2027
Amsterdam
wo 17 nov. 2027
Eindhoven
wo 17 nov. 2027
Houten
wo 17 nov. 2027
Rotterdam
wo 17 nov. 2027
Utrecht
wo 17 nov. 2027
Zwolle
wo 17 nov. 2027
Amsterdam
wo 12 jan. 2028
Eindhoven
wo 12 jan. 2028
Houten
wo 12 jan. 2028
Rotterdam
wo 12 jan. 2028
Utrecht
wo 12 jan. 2028
Zwolle
wo 12 jan. 2028
Amsterdam
wo 15 mrt. 2028
Eindhoven
wo 15 mrt. 2028
Houten
wo 15 mrt. 2028
Rotterdam
wo 15 mrt. 2028
Utrecht
wo 15 mrt. 2028
Zwolle
wo 15 mrt. 2028
Amsterdam
wo 17 mei 2028
Eindhoven
wo 17 mei 2028
Houten
wo 17 mei 2028
Rotterdam
wo 17 mei 2028
Utrecht
wo 17 mei 2028
Zwolle
wo 17 mei 2028
Amsterdam
wo 12 jul. 2028
Eindhoven
wo 12 jul. 2028
Houten
wo 12 jul. 2028
Rotterdam
wo 12 jul. 2028
Utrecht
wo 12 jul. 2028
Zwolle
wo 12 jul. 2028
Amsterdam
wo 13 sep. 2028
Eindhoven
wo 13 sep. 2028
Houten
wo 13 sep. 2028
Rotterdam
wo 13 sep. 2028
Utrecht
wo 13 sep. 2028
Zwolle
wo 13 sep. 2028
Keurmerken aanbieder
NRTO
UWV scholingsvoucher