🍺 BREW Explorer

← all formulae

doctest

brew install doctest v2.5.2 MIT

Feature-rich C++11/14/17/20/23 single-header testing framework

55
30-day installs · #4467
558
90-day · #2783
6.1k
365-day · #1784
6.8k
★ GitHub stars · updated 2mo ago

Build dependencies

GitHub topics

c-plus-plus cpp cpp11 cpp14 cpp17 cpp20 cpp23 doctest header-only single-file tdd testing testing-framework unit-testing

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "cmake"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Feature-rich C++11/14/17/20/23 single-header testing framework",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:37:04+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "doctest",
  "github_default_branch": "master",
  "github_last_commit_at": "2026-06-16T22:30:34Z",
  "github_readme_excerpt": "\u003cp align=\"center\"\u003e\u003cimg src=\"scripts/data/logo/logo_1.svg\"\u003e\u003c/p\u003e\n\n\u003cb\u003e\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\n            master branch\n        \u003c/td\u003e\n        \u003ctd\u003e\n            \u003ca href=\"https://github.com/doctest/doctest/actions?query=branch%3Amaster\"\u003e\u003cimg src=\"https://github.com/doctest/doctest/workflows/CI/badge.svg?branch=master\"\u003e\u003c/a\u003e\n        \u003c/td\u003e\n        \u003ctd\u003e\n            \u003ca href=\"https://app.codecov.io/gh/doctest/doctest/branch/master\"\u003e\u003cimg src=\"https://codecov.io/gh/doctest/doctest/branch/master/graph/badge.svg?token=fAdZl67WN7\"/\u003e\u003c/a\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\n            dev branch\n        \u003c/td\u003e\n        \u003ctd\u003e\n            \u003ca href=\"https://github.com/doctest/doctest/actions?query=branch%3Adev\"\u003e\u003cimg src=\"https://github.com/doctest/doctest/workflows/CI/badge.svg?branch=dev\"\u003e\u003c/a\u003e\n        \u003c/td\u003e\n        \u003ctd\u003e\n            \u003ca href=\"https://app.codecov.io/gh/doctest/doctest/branch/dev\"\u003e\u003cimg src=\"https://codecov.io/gh/doctest/doctest/branch/dev/graph/badge.svg?token=fAdZl67WN7\"/\u003e\u003c/a\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\u003c/b\u003e\n\n**doctest** is a new C++ testing framework but is by far the fastest both in compile times (by [**orders of magnitude**](doc/markdown/benchmarks.md)) and runtime compared to other feature-rich alternatives. It brings the ability of compiled languages such as [**D**](https://dlang.org/spec/unittest.html) / [**Rust**](https://doc.rust-lang.org/book/second-edition/ch11-00-testing.html) / [**Nim**](https://nim-lang.org/docs/unittest.html) to have tests written directly in the production code thanks to a fast, transparent and flexible test runner with a clean interface.\n\n[![Standard](https://img.shields.io/badge/c%2B%2B-11/14/17/20/23-blue.svg)](https://en.wikipedia.org/wiki/C%2B%2B#Standardization)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![download](https://img.shields.io/badge/download%20%20-link-blue.svg)](https://raw.githubusercontent.com/doctest/doctest/master/doctest/doctest.h)\n[![CII B",
  "github_repo": "doctest/doctest",
  "github_stars": 6784,
  "github_topics": [
    "c-plus-plus",
    "cpp",
    "cpp11",
    "cpp14",
    "cpp17",
    "cpp20",
    "cpp23",
    "doctest",
    "header-only",
    "single-file",
    "tdd",
    "testing",
    "testing-framework",
    "unit-testing"
  ],
  "homepage": "https://github.com/doctest/doctest",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 55,
  "installs_365d": 6055,
  "installs_90d": 558,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "doctest",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 4467,
  "rank_365d": 1784,
  "rank_90d": 2783,
  "raw_hash": "a79611fc4c7f2459",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/d/doctest.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": null,
  "version_stable": "2.5.2",
  "versioned_formulae": [],
  "why_use_this": null
}