Getting Started

Welcome! Let’s Begin Writing Your First Unit Test

This guide will walk you through creating a small unit test for our example library using the Erbsland UnitTest framework. To get started, ensure you have:

  • Your favorite C++ development environment.

  • A Git client of your choice.

We’ll demonstrate using command-line tools, but you’re encouraged to use whatever tools you prefer to achieve the same results.

Let’s get started with setting up your project! →

… Or Learn by Example

Prefer to learn by example? Dive straight into this ready-to-use repository:

Explore the Example Repository

This repository contains a fully functional example, showcasing best practices for structuring and using the Erbsland UnitTest framework.

Navigate the Chapter

Use the green button in each section to follow the step-by-step guide and set up your first test. Alternatively, jump directly to one of the following sections: