Here is an example test for our customer library written in Doctest:
#include "customer/customer.h"
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include <doctest/doctest.h>
TEST_CASE("Basic responses") {
auto name = "Bob";
auto code_and_string = responder{}.prepare_response(name);
REQUIRE(code_and_string.first == web::http::status_codes::OK);
REQUIRE(code_and_string.second == web::json::value("Hello, Bob!"));
}
Once again, it's quite clean and easy to understand. The main selling point of Doctest is that it's the fastest both at compile-time and at runtime compared to the other similarly-featured alternatives.