diff --git a/CHANGELOG.md b/CHANGELOG.md index 76be5ca71..3dcd0011c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # Change Log +## [2.4.5](https://github.com/onqtam/doctest/tree/2.4.5) (2021-02-02) +[Full Changelog](https://github.com/onqtam/doctest/compare/2.4.4...2.4.5) + +**Closed issues:** + +- Use of std::atomic can slow down multithreaded tests [\#452](https://github.com/onqtam/doctest/issues/452) +- compilation issue in MSVC when defining DOCTEST_THREAD_LOCAL to static [\#458](https://github.com/onqtam/doctest/issues/458) +- nvcc compiler warning; doctest.h(4138): warning : expression has no effect [\#454](https://github.com/onqtam/doctest/issues/454) +- Stack buffer overflow in `String` constructor [\#460](https://github.com/onqtam/doctest/issues/460) +- Surpress warnings from clang-tidy [\#459](https://github.com/onqtam/doctest/issues/459) + +**Merged pull requests:** + +- Fix compilation on case-sensitive filesystems [\#463](https://github.com/onqtam/doctest/pull/463) ([jhasse](https://github.com/onqtam/jhasse)) +- Use function-like macros for prefixless macro names [\#462](https://github.com/onqtam/doctest/pull/462) ([tbleher](https://github.com/tbleher)) +- Implement a multi lane atomic for assertion counts [\#453](https://github.com/onqtam/doctest/pull/453) ([martinus](https://github.com/martinus)) + ## [2.4.4](https://github.com/onqtam/doctest/tree/2.4.4) (2020-12-25) [Full Changelog](https://github.com/onqtam/doctest/compare/2.4.3...2.4.4) diff --git a/doc/html_generated/commandline.html b/doc/html_generated/commandline.html index e21ea5943..698affad5 100644 --- a/doc/html_generated/commandline.html +++ b/doc/html_generated/commandline.html @@ -37,7 +37,7 @@ | ```-sce``` ```--subcase-exclude=``` | Same as ```--test-case-exclude=``` but filters based on subcase names | | ```-r``` ```--reporters=``` | List of [**reporters**](reporters.html) to use (default is ```console```) | | ```-o```   ```--out=``` | Output filename | -| ```-ob```   ```--order-by=``` | Test cases will be sorted before being executed either by **the file in which they are** / **the test suite they are in** / **their name** / **random**. The possible values of `````` are ```file```/```suite```/```name```/```rand```. The default is ```file```. **NOTE: the order produced by the ```file```, ```suite``` and ```name``` options is compiler-dependent and might differ depending on the compiler used.** | +| ```-ob```   ```--order-by=``` | Test cases will be sorted before being executed either by **the file in which they are** / **the test suite they are in** / **their name** / **random**. The possible values of `````` are ```file```/```suite```/```name```/```rand```/```none```. The default is ```file```. **NOTE: the order produced by the ```file```, ```suite``` and ```name``` options is compiler-dependent and might differ depending on the compiler used.** | | ```-rs```   ```--rand-seed=``` | The seed for random ordering | | ```-f```     ```--first=``` | The **first** test case to execute which passes the current filters - for range-based execution - see [**the example python script**](../../examples/range_based_execution.py) | | ```-l```     ```--last=``` | The **last** test case to execute which passes the current filters - for range-based execution - see [**the example python script**](../../examples/range_based_execution.py) | diff --git a/doc/html_generated/testcases.html b/doc/html_generated/testcases.html index c4ef5ff12..bae150476 100644 --- a/doc/html_generated/testcases.html +++ b/doc/html_generated/testcases.html @@ -125,6 +125,8 @@ Multiple decorators can be used at the same time. These are the currently supported decorators: - **```skip(bool = true)```** - marks the test case to be skipped from execution - unless the ```--no-skip``` option is used +- **```no_breaks(bool = true)```** - no breaking into the debugger for asserts in the test case - useful in combination with `may_fail`/`should_fail`/`expected_failures` +- **```no_output(bool = true)```** - no output from asserts in the test case - useful in combination with `may_fail`/`should_fail`/`expected_failures` - **```may_fail(bool = true)```** - doesn't fail the test if any given assertion fails (but still reports it) - this can be useful to flag a work-in-progress, or a known issue that you don't want to immediately fix but still want to track in the your tests - **```should_fail(bool = true)```** - like **```may_fail()```** but fails the test if it passes - his can be useful if you want to be notified of accidental, or third-party, fixes - **```expected_failures(int)```** - defines the number of assertions that are expected to fail within the test case - reported as failure when the number of failed assertions is different than the declared expected number of failures diff --git a/doctest/doctest.h b/doctest/doctest.h index b60421754..7a2534d79 100644 --- a/doctest/doctest.h +++ b/doctest/doctest.h @@ -48,8 +48,8 @@ #define DOCTEST_VERSION_MAJOR 2 #define DOCTEST_VERSION_MINOR 4 -#define DOCTEST_VERSION_PATCH 4 -#define DOCTEST_VERSION_STR "2.4.4" +#define DOCTEST_VERSION_PATCH 5 +#define DOCTEST_VERSION_STR "2.4.5" #define DOCTEST_VERSION \ (DOCTEST_VERSION_MAJOR * 10000 + DOCTEST_VERSION_MINOR * 100 + DOCTEST_VERSION_PATCH) diff --git a/doctest/parts/doctest_fwd.h b/doctest/parts/doctest_fwd.h index ad602d39f..1ae807a4e 100644 --- a/doctest/parts/doctest_fwd.h +++ b/doctest/parts/doctest_fwd.h @@ -45,8 +45,8 @@ #define DOCTEST_VERSION_MAJOR 2 #define DOCTEST_VERSION_MINOR 4 -#define DOCTEST_VERSION_PATCH 4 -#define DOCTEST_VERSION_STR "2.4.4" +#define DOCTEST_VERSION_PATCH 5 +#define DOCTEST_VERSION_STR "2.4.5" #define DOCTEST_VERSION \ (DOCTEST_VERSION_MAJOR * 10000 + DOCTEST_VERSION_MINOR * 100 + DOCTEST_VERSION_PATCH) diff --git a/examples/all_features/test_output/version.txt b/examples/all_features/test_output/version.txt index aee264029..8380ddb33 100644 --- a/examples/all_features/test_output/version.txt +++ b/examples/all_features/test_output/version.txt @@ -1 +1 @@ -[doctest] doctest version is "2.4.4" +[doctest] doctest version is "2.4.5" diff --git a/examples/all_features/test_output/version_xml.txt b/examples/all_features/test_output/version_xml.txt index 6550054b2..01fa546bc 100644 --- a/examples/all_features/test_output/version_xml.txt +++ b/examples/all_features/test_output/version_xml.txt @@ -1,4 +1,4 @@ - + diff --git a/meson.build b/meson.build index 40f0ad425..0d2f31187 100644 --- a/meson.build +++ b/meson.build @@ -1,2 +1,2 @@ -project('doctest', ['cpp'], version: '2.4.4', meson_version:'>=0.50') +project('doctest', ['cpp'], version: '2.4.5', meson_version:'>=0.50') doctest_dep = declare_dependency(include_directories: include_directories('doctest')) diff --git a/scripts/version.txt b/scripts/version.txt index ab6d27898..26f8b8bcd 100644 --- a/scripts/version.txt +++ b/scripts/version.txt @@ -1 +1 @@ -2.4.4 \ No newline at end of file +2.4.5 \ No newline at end of file