doctest
« Back to VersTracker
Description:
Feature-rich C++11/14/17/20/23 single-header testing framework
Type: Formula  |  Latest Version: 2.4.12@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: testing c++ framework unit-tests single-header
Install: brew install doctest
About:
doctest is a modern C++ testing framework that prioritizes simplicity and ultra-fast compilation. It is implemented as a single-header library, eliminating complex setup and minimizing build times. The framework provides a rich set of features while keeping the footprint small and the developer experience smooth.
Key Features:
  • Single-header inclusion for easy integration
  • Ultra-fast compile times and minimal overhead
  • Rich assertion macros with type-diffing capabilities
  • No external dependencies and portable across platforms
Use Cases:
  • Unit testing in performance-critical C++ applications
  • Integration into existing codebases without build system changes
  • Test-driven development requiring rapid feedback loops
Alternatives:
  • Google Test – More feature-rich but requires building and linking a separate library
  • Catch2 – Similar single-header approach, though doctest aims for faster compilation
License: MIT
Bottles available for: all
Version History
Detected Version Rev Change Commit