Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This tutorial focuses on creating a simple C++ Calculator project using the divide() function and testing it using the GoogleTest platform. This guide shows a complete way to do this, starting by writing tests for that function and then moving on to writing the source for the function. The principle of Test Driven Development (TDD) is to write the tests first, and then the function itself. As you write your source code, you should run tests from time to time to check that the code is correct.

...

Info
titleThe source code can be find here:

https://gitlab.eufus.eupsnc.pl/bpogodzinskiach/ach-tutorials/-/tree/master/TDD-cpp/Calculator

...

Create The Calculator project

...