Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1.34 KB

File metadata and controls

53 lines (34 loc) · 1.34 KB

Using Approval Tests With doctest

Contents

Getting Started With doctest

The doctest test framework works well with Approval Tests.

Doctest is similar to Catch, but claims to give faster compilation times.

Requirements

Approval Tests for doctest requires that a file called doctest.h is found.

Approval Tests needs doctest version 2.3.4 or above.

New Project

Create a file main.cpp and add just the following two lines:

// main.cpp:
#define APPROVALS_DOCTEST // This tells Approval Tests to provide a main() - only do this in one cpp file
#include "ApprovalTests.hpp"

snippet source / anchor


Back to User Guide