testing

Complete walkthrough: Adding CMake to an existing library

In this article, we will explore how we can take two libraries we have developed before on this website (namely the linear algebra solver library and the mesh reader library) and add CMake scripts to them to fully automate the compilation and deployment stages from configuring the project to compilation, testing, documentation generation, installation, and …

Complete walkthrough: Adding CMake to an existing library Read More »

How to use mocking in CFD test code using gtest and gmock

In this article, we look at the last remaining topic in our series on software testing; Mocking. This aspect plays a a very big role in the testing of web and mobile applications, but not so much for console applications such as CFD solvers. However, there are specific use cases where mocking can help us …

How to use mocking in CFD test code using gtest and gmock Read More »

How To Test A CGNS-based Mesh Reading Library Using gtest

In this article, we extend our knowledge on how to integrate gtest into our mesh reading library using the CGNS data format for structured and unstructured grids that we developed in a previous series. We will rewrite the unit tests that we have already written using our own primitive testing framework and highlight how gtest …

How To Test A CGNS-based Mesh Reading Library Using gtest Read More »

How to get started with gtest in C++ for CFD development

In this article, we will look at testing frameworks in C++ and I provide reasons for why I am using Google’s gtest testing framework and why it covers all of our use-cases we have to test CFD solvers and related code. We will use it to rewrite our tests for the complex number class we …

How to get started with gtest in C++ for CFD development Read More »