doctest/2.4.12

[brief]

C++ testing framework for unit tests and TDD

This project is a build2 package repository that provides access to doctest, a C++ testing framework that brings the ability to have tests written directly in the production code thanks to a fast, transparent and flexible test runner with a clean interface.

Official build2 cppget.org queue.cppget.org

Usage

Make sure to add the stable or testing section of the cppget.org repository to your project's repositories.manifest to be able to fetch this package.

:
role: prerequisite
location: https://pkg.cppget.org/1/stable
# trust: ...

If the stable or testing section of cppget.org is not an option then add this Git repository itself instead as a prerequisite.

:
role: prerequisite
location: https://github.com/build2-packaging/doctest.git

Add the respective dependency in your project's manifest file to make the package available for import.

depends: doctest ^2.4.12

To import the library target that already implements the main function, include the following declaration in a buildfile.

import doctest = doctest%lib{doctest-main}

If you want to customize the testing process by providing your own main, use the following header-only library target instead.

import doctest = doctest%lib{doctest}

Configuration

doctest itself already comes with various configuration options. Some of these can be accessed by the package configuration. For an explanation, refer to doctest's configuration documentation. The following variables need to be provided globally and will affect both library targets, lib{doctest} and lib{doctest-main}.

config [bool] config.doctest.disable                 ?= false
config [bool] config.doctest.treat_char_as_string    ?= false
config [bool] config.doctest.use_std_headers         ?= false
config [bool] config.doctest.no_exceptions           ?= false
config [bool] config.doctest.no_contradicting_inline ?= false

The following configuration variables only need to be set for the implementation unit and will only affect the lib{doctest-main} library target. Define their respective pre-processor macros for doctest implementation unit that implement their own main function and only link to lib{doctest}.

config [string] config.doctest.options_prefix      ?= [null]
config [bool] config.doctest.no_unprefixed_options ?= false
config [bool] config.doctest.colors_none           ?= false
config [bool] config.doctest.colors_windows        ?= false
config [bool] config.doctest.colors_ansi           ?= false
config [bool] config.doctest.windows_seh           ?= false
config [bool] config.doctest.no_windows_seh        ?= false
config [bool] config.doctest.posix_signals         ?= false
config [bool] config.doctest.no_posix_signals      ?= false
config [bool] config.doctest.no_multithreading     ?= false
config [bool] config.doctest.no_multi_lane_atomics ?= false

Issues and Notes

Contributing

Thank you in advance for your help and contribution to keep this package up-to-date. Please, file an issue on GitHub for questions, bug reports, or to recommend updating the package version. If you're making a pull request to fix bugs or update the package version yourself, refer to the build2 Packaging Guidelines.

version 2.4.12
license MIT
repository https://pkg.cppget.org/1/testing
download doctest-2.4.12.tar.gz
sha256 d5d9d27b3d627637d18c3316940038760c0e2caff71f95e0eb099917707aa26d
project doctest
url github.com/doctest/doctest
package-url github.com/build2-packaging/doctest/
package-email packaging@build2.org

Reviews

fail 0
pass 0

Builds

toolchain public-0.17.0
target aarch64-linux-gnu
tgt config linux_debian_12-gcc_14-static_O3
timestamp 2025-09-04 15:20:04 UTC (02 07:22:16 days ago)
result success | log | rebuild
toolchain public-0.17.0
target aarch64-linux-gnu
tgt config linux_debian_12-gcc_14-ndebug_O3
timestamp 2025-09-04 15:19:29 UTC (02 07:22:51 days ago)
result success | log | rebuild
toolchain public-0.17.0
target aarch64-linux-gnu
tgt config linux_debian_12-gcc_14-O3
timestamp 2025-09-04 15:18:55 UTC (02 07:23:25 days ago)
result success | log | rebuild
toolchain public-0.17.0
target aarch64-linux-gnu
tgt config linux_debian_12-gcc_14
timestamp 2025-09-04 15:18:20 UTC (02 07:24:00 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-w64-mingw32
tgt config windows_10-gcc_13.2_mingw_w64-static_O2
timestamp 2025-09-04 15:05:30 UTC (02 07:36:50 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-linux-gnu
tgt config linux_debian_12-gcc_14-static_O3
timestamp 2025-09-04 15:05:04 UTC (02 07:37:16 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-microsoft-win32-msvc14.3
tgt config windows_10-msvc_17.8-static_O2
timestamp 2025-09-04 15:05:02 UTC (02 07:37:18 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-linux-gnu
tgt config linux_debian_12-gcc_14-ndebug_O3
timestamp 2025-09-04 15:04:52 UTC (02 07:37:28 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-microsoft-win32-msvc14.3
tgt config windows_10-msvc_17.8-O2
timestamp 2025-09-04 15:04:45 UTC (02 07:37:35 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-w64-mingw32
tgt config windows_10-gcc_13.2_mingw_w64-O2
timestamp 2025-09-04 15:04:44 UTC (02 07:37:36 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-w64-mingw32
tgt config windows_10-gcc_13.2_mingw_w64
timestamp 2025-09-04 15:04:44 UTC (02 07:37:36 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-microsoft-win32-msvc14.3
tgt config windows_10-clang_18_llvm_msvc_17.10-static_O2
timestamp 2025-09-04 15:04:40 UTC (02 07:37:40 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-microsoft-win32-msvc14.3
tgt config windows_10-msvc_17.10-static_O2
timestamp 2025-09-04 15:04:32 UTC (02 07:37:48 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-microsoft-win32-msvc14.3
tgt config windows_10-msvc_17.10-O2
timestamp 2025-09-04 15:04:28 UTC (02 07:37:52 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-microsoft-win32-msvc14.3
tgt config windows_10-msvc_17.8
timestamp 2025-09-04 15:04:19 UTC (02 07:38:01 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-microsoft-win32-msvc14.3
tgt config windows_10-msvc_17.10
timestamp 2025-09-04 15:04:14 UTC (02 07:38:06 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-linux-gnu
tgt config linux_debian_12-gcc_14-O3
timestamp 2025-09-04 15:04:12 UTC (02 07:38:08 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-microsoft-win32-msvc14.3
tgt config windows_10-clang_18_llvm_msvc_17.10-O2
timestamp 2025-09-04 15:04:08 UTC (02 07:38:12 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-microsoft-win32-msvc14.3
tgt config windows_10-clang_18_llvm_msvc_17.10
timestamp 2025-09-04 15:04:01 UTC (02 07:38:19 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-microsoft-win32-msvc14.3
tgt config windows_10-clang_17_msvc_msvc_17.10
timestamp 2025-09-04 15:03:59 UTC (02 07:38:21 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-linux-gnu
tgt config linux_debian_12-gcc_12-bindist
timestamp 2025-09-04 15:03:44 UTC (02 07:38:36 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-linux-gnu
tgt config linux_debian_12-gcc_14
timestamp 2025-09-04 15:03:35 UTC (02 07:38:45 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-linux-gnu
tgt config linux_ubuntu_24.04-gcc_13-bindist
timestamp 2025-09-04 15:03:34 UTC (02 07:38:47 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-linux-gnu
tgt config linux_fedora_40-gcc_14-bindist
timestamp 2025-09-04 15:03:24 UTC (02 07:38:56 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-linux-gnu
tgt config linux_debian_12-gcc_13.1
timestamp 2025-09-04 15:03:20 UTC (02 07:39:00 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-freebsd14.1
tgt config freebsd_14-clang_18-static_O3
timestamp 2025-09-04 15:03:14 UTC (02 07:39:06 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-linux-gnu
tgt config linux_debian_12-clang_17_libc++
timestamp 2025-09-04 15:03:04 UTC (02 07:39:16 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-linux-gnu
tgt config linux_debian_12-clang_17
timestamp 2025-09-04 15:03:01 UTC (02 07:39:19 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-freebsd14.1
tgt config freebsd_14-clang_18-O3
timestamp 2025-09-04 15:02:54 UTC (02 07:39:26 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-freebsd14.1
tgt config freebsd_14-clang_18
timestamp 2025-09-04 15:02:40 UTC (02 07:39:40 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-freebsd13.3
tgt config freebsd_13-clang_17
timestamp 2025-09-04 15:02:37 UTC (02 07:39:43 days ago)
result success | log | rebuild
toolchain public-0.17.0
target aarch64-linux-gnu
tgt config linux_debian_12-clang_18_libc++-static_O3
timestamp 2025-09-04 14:58:31 UTC (02 07:43:49 days ago)
result success | log | rebuild
toolchain public-0.17.0
target aarch64-linux-gnu
tgt config linux_debian_12-clang_18_libc++-O3
timestamp 2025-09-04 14:58:10 UTC (02 07:44:10 days ago)
result success | log | rebuild
toolchain public-0.17.0
target aarch64-linux-gnu
tgt config linux_debian_12-clang_18_libc++
timestamp 2025-09-04 14:57:59 UTC (02 07:44:21 days ago)
result success | log | rebuild
toolchain public-0.17.0
target aarch64-linux-gnu
tgt config linux_debian_12-clang_18-static_O3
timestamp 2025-09-04 14:57:38 UTC (02 07:44:42 days ago)
result success | log | rebuild
toolchain public-0.17.0
target aarch64-linux-gnu
tgt config linux_debian_12-clang_18-O3
timestamp 2025-09-04 14:57:23 UTC (02 07:44:57 days ago)
result success | log | rebuild
toolchain public-0.17.0
target aarch64-linux-gnu
tgt config linux_debian_12-clang_18
timestamp 2025-09-04 14:57:03 UTC (02 07:45:17 days ago)
result success | log | rebuild
toolchain public-0.17.0
target aarch64-linux-gnu
tgt config linux_debian_12-gcc_13
timestamp 2025-09-04 13:44:17 UTC (02 08:58:03 days ago)
result success | log | rebuild
toolchain public-0.17.0
target aarch64-linux-gnu
tgt config linux_debian_12-clang_17_libc++
timestamp 2025-09-04 13:44:00 UTC (02 08:58:20 days ago)
result success | log | rebuild
toolchain public-0.17.0
target aarch64-linux-gnu
tgt config linux_debian_12-clang_17
timestamp 2025-09-04 13:43:43 UTC (02 08:58:37 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-linux-gnu
tgt config linux_debian_12-clang_18
result unbuilt
toolchain public-0.17.0
target x86_64-linux-gnu
tgt config linux_debian_12-clang_18-O3
result unbuilt
toolchain public-0.17.0
target x86_64-linux-gnu
tgt config linux_debian_12-clang_18-static_O3
result unbuilt
toolchain public-0.17.0
target x86_64-linux-gnu
tgt config linux_debian_12-clang_18_libc++
result unbuilt
toolchain public-0.17.0
target x86_64-linux-gnu
tgt config linux_debian_12-clang_18_libc++-O3
result unbuilt
toolchain public-0.17.0
target x86_64-linux-gnu
tgt config linux_debian_12-clang_18_libc++-static_O3
result unbuilt
toolchain public-0.17.0
target x86_64-linux-gnu
tgt config linux_fedora_39-gcc_13-bindist
result unbuilt
toolchain public-0.17.0
target x86_64-apple-darwin22.5.0
tgt config macos_13-clang_15.0
result unbuilt
toolchain public-0.17.0
target x86_64-apple-darwin23.5.0
tgt config macos_14-clang_15.0
result unbuilt
toolchain public-0.17.0
target x86_64-apple-darwin23.5.0
tgt config macos_14-clang_15.0-O3
result unbuilt
toolchain public-0.17.0
target x86_64-apple-darwin23.5.0
tgt config macos_14-clang_15.0-static_O3
result unbuilt
toolchain public-0.17.0
target x86_64-apple-darwin23.5.0
tgt config macos_14-gcc_14_homebrew
result unbuilt
toolchain public-0.17.0
target x86_64-apple-darwin23.5.0
tgt config macos_14-gcc_14_homebrew-O3
result unbuilt
toolchain public-0.17.0
target x86_64-apple-darwin23.5.0
tgt config macos_14-gcc_14_homebrew-static_O3
result unbuilt

Changes

Change Log

v2.4.12 (2025-04-28)

Full Changelog

v2.4.11 (2023-03-15)

Full Changelog

v2.4.10 (2023-02-27)

Full Changelog

v2.4.9 (2022-06-18)

Full Changelog

Closed issues:

Merged pull requests:

v2.4.8 (2022-01-10)

Full Changelog

Closed issues:

Merged pull requests:

2.4.7 (2021-12-10)

Full Changelog

Implemented enhancements:

Fixed bugs:

Closed issues:

Merged pull requests:

2.4.6 (2021-03-22)

Full Changelog

Fixed bugs:

Closed issues:

Merged pull requests:

2.4.5 (2021-02-02)

Full Changelog

Closed issues:

Merged pull requests:

2.4.4 (2020-12-25)

Full Changelog

Closed issues:

2.4.3 (2020-12-16)

Full Changelog

2.4.2 (2020-12-15)

Full Changelog

Closed issues:

Merged pull requests:

2.4.1 (2020-11-04)

Full Changelog

Closed issues:

Merged pull requests:

2.4.0 (2020-06-27)

Full Changelog

Closed issues:

Merged pull requests:

2.3.8 (2020-05-17)

Full Changelog

Closed issues:

Merged pull requests:

2.3.7 (2020-02-24)

Full Changelog

Closed issues:

Merged pull requests:

2.3.6 (2019-12-16)

Full Changelog

Closed issues:

Merged pull requests:

2.3.5 (2019-09-22)

Full Changelog

Closed issues:

Merged pull requests:

2.3.4 (2019-08-12)

Full Changelog

Closed issues:

Merged pull requests:

2.3.3 (2019-06-02)

Full Changelog

Closed issues:

Merged pull requests:

2.3.2 (2019-05-06)

Full Changelog

Closed issues:

Merged pull requests:

2.3.1 (2019-03-24)

Full Changelog

Merged pull requests:

2.3.0 (2019-03-23)

Full Changelog

Closed issues:

Merged pull requests:

2.2.3 (2019-02-10)

Full Changelog

Closed issues:

2.2.2 (2019-01-28)

Full Changelog

Closed issues:

Merged pull requests:

2.2.1 (2019-01-15)

Full Changelog

Closed issues:

2.2.0 (2018-12-05)

Full Changelog

Closed issues:

2.1.0 (2018-11-30)

Full Changelog

Closed issues:

Merged pull requests:

2.0.1 (2018-10-24)

Full Changelog

Closed issues:

Merged pull requests:

2.0.0 (2018-08-23)

Full Changelog

Closed issues:

Merged pull requests:

1.2.9 (2018-05-10)

Full Changelog

Closed issues:

Merged pull requests:

1.2.8 (2018-03-10)

Full Changelog

Closed issues:

1.2.7 (2018-02-06)

Full Changelog

Closed issues:

Merged pull requests:

1.2.6 (2017-10-29)

Full Changelog

Closed issues:

Merged pull requests:

1.2.5 (2017-10-06)

Full Changelog

Closed issues:

1.2.4 (2017-09-20)

Full Changelog

Closed issues:

1.2.3 (2017-09-11)

Full Changelog

Closed issues:

1.2.2 (2017-09-05)

Full Changelog

Closed issues:

Merged pull requests:

1.2.1 (2017-05-24)

Full Changelog

Closed issues:

Merged pull requests:

1.2.0 (2017-05-15)

Full Changelog

Closed issues:

Merged pull requests:

1.1.4 (2017-02-18)

Full Changelog

Closed issues:

Merged pull requests:

1.1.3 (2016-11-15)

Full Changelog

Closed issues:

1.1.2 (2016-10-10)

Full Changelog

Closed issues:

1.1.1 (2016-09-22)

Full Changelog

1.1.0 (2016-09-21)

Full Changelog

Closed issues:

Merged pull requests:

1.0.0 (2016-05-22)

Merged pull requests:

* This Change Log was automatically generated by github_changelog_generator