Google Test

Permanent link to this article: http://sajdak.eu/trainings/agile-cpp-developer/google-test/

Introduction to asserts and expects

Basic checks In test we should be able to check if code is doing the right thing. To do that Google Test give us tools for having some checks which may end up with success, nonfatal failure, or fatal failure. In next sections you will learn how to write different type of checks for your test. …

View page »

First and easy but real test

In previous tutorial I have shown how to use ASSERT_* and CHECK_* commands to write your checks into the test. Examples used previously was trivial and rather not useful in practice. Today I would like to show you how to write some easy but real test to some real code. I will demonstrate how you can …

View page »