Articles, tutorials, videos and tools to perform software testing with c and c++.

Mixing Tests and Production Code With Doctest

October 25, 2017 0

doctest is a fully open source light and feature-rich C++98 / C++11 single-header testing framework for unit tests and TDD. It is inspired by the unittest {} functionality of the D programming language and Python’s docstrings. Tests can be considered a form of documentation and should be able to reside near the production code which they test. This is not possible (or at least practical) with any other testing framework for C++.

Unit Testing for C++

September 4, 2017 0

Even if C++ is less “trendy” that current web development languages like JavaScript, it is still a fundamental technology for many embedded software development projects. In his article, Diego Dagum provides some basic principles of testing in C++.

Static Analysis for C++

May 30, 2016 0

Static analysis tools have the potential to significantly improve programmer productivity as well as the safety, reliability and efficiency of the code they write. Modern static analysis has moved well beyond the mental model people often have based on “lint”: just finding simple typos. Static analysis can find subtle, complex bugs early, identify opportunities to improve performance, encourage consistent style and appropriate usage of libraries and APIs.

Super-Simple Mutation Testing

June 24, 2011 0

Mutation testing is known for being difficult and expensive, but we’re here to show you a real-world system you can build in just a few hours with a little C# code and Visual Studio.

Agile C++ Development and Testing

June 6, 2011 0

This article presents a number of techniques that our team here at Microsoft has been using to build and test applications in Visual C++ using an Agile approach.