doctest

The fastest feature-rich C++11/14/17/20/23 single-header testing framework (by doctest)

Doctest Alternatives

Similar projects and alternatives to doctest

  1. .NET Runtime

    .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. build-your-own-x

    Discontinued 🤓 Build your own (insert technology here) [Moved to: https://github.com/codecrafters-io/build-your-own-x] (by danistefanovic)

  4. MkDocs

    120 doctest VS MkDocs

    Project documentation with Markdown.

  5. meson

    112 doctest VS meson

    The Meson Build System

  6. clojure

    110 doctest VS clojure

    The Clojure programming language

  7. Nuitka

    101 doctest VS Nuitka

    Nuitka is a Python compiler written in Python. It's fully compatible with Python 2.6, 2.7, 3.4-3.13. You feed it your Python app, it does a lot of clever things, and spits out an executable or extension module.

  8. Google Test

    GoogleTest - Google Testing and Mocking Framework

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. Catch

    59 doctest VS Catch

    A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)

  11. factor

    63 doctest VS factor

    Factor programming language

  12. CPM.cmake

    41 doctest VS CPM.cmake

    📦 CMake's missing package manager. A small CMake script for setup-free, cross-platform, reproducible dependency management.

  13. cpp-httplib

    A C++ header-only HTTP/HTTPS server and client library

  14. PyCall.jl

    28 doctest VS PyCall.jl

    Package to call Python functions from the Julia language

  15. Seastar

    26 doctest VS Seastar

    High performance server-side application framework

  16. Unity Test API

    Simple unit testing for C

  17. typeshed

    24 doctest VS typeshed

    Collection of library stubs for Python, with static types

  18. Boost.Asio

    Asio C++ Library

  19. CppUTest

    1 doctest VS CppUTest

    CppUTest unit testing and mocking framework for C/C++

  20. Boost.Test

    The reference C++ unit testing framework (TDD, xUnit, C++03/11/14/17) (by boostorg)

  21. openjdk-aarch64

    Microsoft builds of OpenJDK for AArch64 Platforms

  22. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better doctest alternative or higher similarity.

doctest discussion

Log in or Post with

doctest reviews and mentions

Posts with mentions or reviews of doctest. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-11-24.
  • The Two Factions of C++
    15 projects | news.ycombinator.com | 24 Nov 2024
    catch2 has become fairly bloated. doctest takes all of the best parts of catch2 without all the bloat and the end result is a test framework that is literally over 10x faster than catch2. It's also like 90% compatible with catch2 so porting your tests to it is pretty easy.

    Especially if you have a build process that always runs your unit tests, it's nice to have a very fast test/compile/debug loop.

    https://github.com/doctest/doctest

  • Unit testing tool suggestions
    2 projects | /r/learnprogramming | 7 May 2023
    I have never used "tools" for unit-tests, only web sites that show the results of the tests or code coverage. For C++ I prefer https://github.com/doctest/doctest but most companies I worked for use Catch2.
  • Question about Doctest.h
    1 project | /r/learnprogramming | 5 Feb 2023
    Do the README and tutorial not explain it well enough? It's a framework for automated unit testing.
  • Doctest – C++ Testing Framework
    1 project | news.ycombinator.com | 4 Feb 2023
  • Memory Safety in the D Programming Language (Part 2 of N)
    2 projects | /r/programming | 8 Oct 2022
    This is, honestly, super easy to get going. Nowadays you have a ton of libraries and more-than-decent build systems. With Meson/CMake and Conan/Vcpkg I can set up a project with testing in 3 minutes. Also, I think that at the end of the day you want your tests to live somewhere else. But if you want to embed them, you also have https://github.com/doctest/doctest.
  • how can I improve my connect4 board class?
    1 project | /r/cpp_questions | 28 May 2022
    Write some tests. They can find bugs early and give you confidence that your code works so far. That doesn't have to be anything fancy, e.g. with doctest:
  • Testing framework Catch2 3.0 final released
    3 projects | /r/cpp | 17 May 2022
    Keep in mind https://github.com/doctest/doctest/issues/554. Also, doctest lacks: - Matchers - Data generators - Benchmarking - ...
  • Check if my code meets the requirements?
    1 project | /r/learnprogramming | 30 Mar 2022
    Your requirements can easily simulated on paper (like increase the speed once, twice, ...), then translated to unit-tests with a framework like https://github.com/doctest/doctest.
  • The Lisp Curse
    11 projects | news.ycombinator.com | 25 Mar 2022
  • C++17 python like print function
    4 projects | /r/embedded | 9 Mar 2022
    For stuff like this which is very easy to test (very predefined input vs output), I highly suggest using some testing framework. Catch2 is great, but there is also doctest and good ole googletest. If you do this, it would also be a great intro to CI, where you do some plumbing on github or gitlab where every commit causes a build to happen on their servers and run through the unit tests, and if it passes it gets merged into master.
  • A note from our sponsor - SaaSHub
    www.saashub.com | 16 Mar 2025
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic doctest repo stats
20
6,133
0.0
4 months ago

doctest/doctest is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of doctest is C++.


Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you know that C++ is
the 7th most popular programming language
based on number of references?