doctest/2.4.11

[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 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 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.11

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

Thanks in advance for your help and contribution to keep this package up-to-date. For now, please, file an issue on GitHub for everything that is not described below.

Recommend Updating Version

Please, file an issue on GitHub with the new recommended version.

Update Version by Pull Request

  1. Fork the repository on GitHub and clone it to your local machine.
  2. Run git submodule init and git submodule update to get the current upstream directory.
  3. Inside the upstream directory, checkout the new library version X.Y.Z by calling git checkout vX.Y.Z that you want to be packaged.
  4. If needed, change source files, buildfiles, and symbolic links accordingly to create a working build2 package. Make sure not to directly depend on the upstream directory inside the build system but use symbolic links instead.
  5. Update library version in manifest file if it has changed or add package update by using +n for the n-th update.
  6. Make an appropriate commit message by using imperative mood and a capital letter at the start and push the new commit to the master branch.
  7. Run bdep ci and test for errors.
  8. If everything works fine, make a pull request on GitHub and write down the bdep ci link to your CI tests.
  9. After a successful pull request, we will run the appropriate commands to publish a new package version.

Update Version Directly if You Have Permissions

  1. Inside the upstream directory, checkout the new library version X.Y.Z by calling git checkout vX.Y.Z that you want to be packaged.
  2. If needed, change source files, buildfiles, and symbolic links accordingly to create a working build2 package. Make sure not to directly depend on the upstream directory inside the build system but use symbolic links instead.
  3. Update library version in manifest file if it has changed or add package update by using +n for the n-th update.
  4. Make an appropriate commit message by using imperative mood and a capital letter at the start and push the new commit to the master branch.
  5. Run bdep ci and test for errors and warnings.
  6. When successful, run bdep release --tag --push to push new tag version to repository.
  7. Run bdep publish to publish the package to cppget.org.
version 2.4.11
license MIT
repository https://pkg.cppget.org/1/stable
download doctest-2.4.11.tar.gz
sha256 c5b466afeb397bd317e31263db53ed8bc2ff962e9d736799c7d4f83bbb4445f6
project doctest
url github.com/doctest/doctest
package-url github.com/build2-packaging/doctest/
package-email packaging@build2.org

Reviews

fail 0
pass 1

Builds

toolchain public-0.17.0
target x86_64-linux-gnu
tgt config linux_fedora_40-gcc_14-bindist
timestamp 2025-08-22 21:41:10 UTC (13:52:07 hours ago)
result success | log | rebuild
toolchain public-0.17.0
target aarch64-linux-gnu
tgt config linux_debian_12-gcc_14-static_O3
timestamp 2025-08-22 15:59:39 UTC (19:33:38 hours 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-08-22 15:56:01 UTC (19:37:16 hours ago)
result success | log | rebuild
toolchain public-0.17.0
target aarch64-linux-gnu
tgt config linux_debian_12-gcc_14-O3
timestamp 2025-08-22 15:53:51 UTC (19:39:26 hours ago)
result success | log | rebuild
toolchain public-0.17.0
target aarch64-linux-gnu
tgt config linux_debian_12-gcc_14
timestamp 2025-08-22 15:52:47 UTC (19:40:30 hours ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-freebsd13.3
tgt config freebsd_13-clang_17
timestamp 2025-08-21 09:26:16 UTC (02 02:07:01 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-08-21 05:08:26 UTC (02 06:24:51 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-08-21 05:05:16 UTC (02 06:28:01 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-08-21 05:03:25 UTC (02 06:29:52 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-08-21 04:57:24 UTC (02 06:35:53 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-08-21 03:56:34 UTC (02 07:36:43 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-08-21 03:56:17 UTC (02 07:37:00 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-08-21 03:54:51 UTC (02 07:38:26 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-08-20 21:37:23 UTC (02 13:55:54 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-08-20 21:34:08 UTC (02 13:59:09 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-08-20 21:32:32 UTC (02 14:00:45 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-08-20 21:32:30 UTC (02 14:00:47 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-08-20 21:31:26 UTC (02 14:01:51 days ago)
result success | log | rebuild
toolchain public-0.17.0
target aarch64-linux-gnu
tgt config linux_debian_12-clang_18
timestamp 2025-08-20 21:31:05 UTC (02 14:02: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-O2
timestamp 2025-08-20 17:52:17 UTC (02 17:41:00 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-08-20 17:51:46 UTC (02 17:41:31 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-08-20 17:50:59 UTC (02 17:42:18 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-08-20 17:49:31 UTC (02 17:43:46 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-08-20 17:45:35 UTC (02 17:47:42 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-08-20 17:44:53 UTC (02 17:48:24 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-08-20 17:44:51 UTC (02 17:48:26 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-08-20 17:41:24 UTC (02 17:51:53 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-08-20 17:37:47 UTC (02 17:55:30 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-08-20 17:37:04 UTC (02 17:56:13 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-08-20 17:36:19 UTC (02 17:56:58 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-08-20 17:23:49 UTC (02 18:09:28 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-08-20 17:09:14 UTC (02 18:24:03 days ago)
result success | log | rebuild
toolchain public-0.17.0
target x86_64-freebsd14.1
tgt config freebsd_14-clang_18
timestamp 2025-08-20 17:06:18 UTC (02 18:26:59 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-08-20 17:05:13 UTC (02 18:28:03 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-08-20 16:45:39 UTC (02 18:47:38 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-08-20 16:43:10 UTC (02 18:50:07 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-08-20 16:37:53 UTC (02 18:55:24 days ago)
result success | log | rebuild
toolchain public-0.17.0
target aarch64-linux-gnu
tgt config linux_debian_12-gcc_13
timestamp 2025-08-20 12:58:25 UTC (02 22:34:52 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-08-20 12:55:07 UTC (02 22:38:10 days ago)
result success | log | rebuild
toolchain public-0.17.0
target aarch64-linux-gnu
tgt config linux_debian_12-clang_17
timestamp 2025-08-20 12:54:59 UTC (02 22:38:18 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.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