Skip to content

Commit 3dcea03

Browse files
committed
v.8.7.0 release
1 parent db505b6 commit 3dcea03

File tree

9 files changed

+58
-42
lines changed

9 files changed

+58
-42
lines changed

ApprovalTests/ApprovalTests.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "ApprovalTests/core/ApprovalWriter.h"
1414
#include "ApprovalTests/writers/StringWriter.h"
1515
#include "ApprovalTests/utilities/FileUtils.h"
16+
#include "ApprovalTests/utilities/StringMaker.h"
1617
#include "ApprovalTests/utilities/StringUtils.h"
1718
#include "ApprovalTests/utilities/SystemUtils.h"
1819
#include "ApprovalTests/utilities/MachineBlocker.h"

ApprovalTests/ApprovalTestsVersion.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
#include "ApprovalTests/ApprovalsMacroDefaults.h"
44

55
#define APPROVAL_TESTS_VERSION_MAJOR 8
6-
#define APPROVAL_TESTS_VERSION_MINOR 6
6+
#define APPROVAL_TESTS_VERSION_MINOR 7
77
#define APPROVAL_TESTS_VERSION_PATCH 0
8-
#define APPROVAL_TESTS_VERSION_STR "8.6.0"
8+
#define APPROVAL_TESTS_VERSION_STR "8.7.0"
99

1010
#define APPROVAL_TESTS_VERSION \
1111
(APPROVAL_TESTS_VERSION_MAJOR * 10000 + APPROVAL_TESTS_VERSION_MINOR * 100 + \

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ To change this file edit the source file and then execute ./run_markdown_templat
1515
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
1616
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v1.4%20adopted-ff69b4.svg)](/CODE_OF_CONDUCT.md#top)
1717

18-
<a href="https://github.com/approvals/ApprovalTests.cpp/releases/download/v.8.6.0/ApprovalTests.v.8.6.0.hpp">Download the latest version (v.8.6.0) of the **single header file** here.</a>
18+
<a href="https://github.com/approvals/ApprovalTests.cpp/releases/download/v.8.7.0/ApprovalTests.v.8.7.0.hpp">Download the latest version (v.8.7.0) of the **single header file** here.</a>
1919

2020
<!-- toc -->
2121
## Contents

build/release_notes/relnotes_8.7.0.md

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
See the [v.8.7.0 milestone](https://github.com/approvals/ApprovalTests.cpp/milestone/8?closed=1) for the full list of changes.
2+
3+
* **Breaking changes**
4+
* **Planned deprecation:** The overloads of `verify()`, `verifyAll()` and `verifyAllCombinations()` which take a `Reporter` have been deprecated.
5+
* The `Reporter` argument is `replaced` by Options - see below.
6+
* By default, there is currently no change, but this release marks the start of the [plan to remove them](/doc/explanations/WhyWeAreConvertingToOptions.md#the-plan).
7+
* If you happen to have specialised `StringUtils::toString()`, you would now need to specialize `StringMaker::toString()` instead.
8+
* Note: this was previously unsupported behavior, so we are not bumping the major version number.
9+
* Here is how to update your code:
10+
```diff
11+
template <>
12+
-std::string ApprovalTests::StringUtils::toString(const StringMakerPrintable& printable)
13+
+std::string ApprovalTests::StringMaker::toString(const StringMakerPrintable& printable)
14+
```
15+
* **New features**
16+
* New [Options](/doc/Options.md#top) class provides consistent interface for customising the following in all `verify()`, `verifyAll()` and `verifyAllCombinations()` calls:
17+
* Reporter: see [Why We Are Converting To Options](/doc/explanations/WhyWeAreConvertingToOptions.md#top)
18+
* Scrubber: [How to Scrub Non-Deterministic Output](/doc/how_tos/ScrubNonDeterministicOutput.md#top). (#126, thank you @abdulg, @haraldreingruber, @jawn)
19+
* File extensions now customizable with `verifyAll()` and `verifyAllCombinations()`: See [File Extensions](/doc/Options.md#file-extensions) (#127)
20+
* New mechanics for [String conversions](/doc/ToString.md#top)
21+
* The class `Approvals` is now an alias for `TApprovals< ToStringCompileTimeOptions< StringMaker > >`
22+
* This is a completely backwards-compatible feature.
23+
* It has been done to support a new feature in a future release.
24+
* Our Conan.io package now supports our Boost.Test integration (#121)
25+
* **Bug fixes**
26+
* None
27+
* **Other changes**
28+
* [User Guide available on Read the Docs](https://approvaltestscpp.readthedocs.io/en/latest/index.html)
29+
* This is more easily searchable and better formatted than on GitHub, and a PDF download is available. (#129)
30+
* Documented workarounds for when [running Catch2 tests in CLion gives 'unexpected exception'](/doc/Troubleshooting.md#running-catch2-tests-in-clion-gives-unexpected-exception) (#131)
31+
* Consistent macro names
32+
* All our Macros now start with `APPROVAL_TESTS_`.
33+
* We have kept the old macros, redirecting to the new ones, for backwards compatibility.
34+
35+
36+
| Old | New |
37+
| ------------------------------------------ | ----------------------------------------- |
38+
| `APPROVALTESTS_VERSION` | `APPROVAL_TESTS_VERSION` |
39+
| `APPROVALTESTS_VERSION_MAJOR` | `APPROVAL_TESTS_VERSION_MAJOR` |
40+
| `APPROVALTESTS_VERSION_MINOR` | `APPROVAL_TESTS_VERSION_MINOR` |
41+
| `APPROVALTESTS_VERSION_PATCH` | `APPROVAL_TESTS_VERSION_PATCH` |
42+
| `APPROVALTESTS_VERSION_STR` | `APPROVAL_TESTS_VERSION_STR` |
43+
| `APPROVALS_CATCH_DISABLE_FILE_MACRO_CHECK` | `APPROVAL_TESTS_DISABLE_FILE_MACRO_CHECK` |

build/relnotes_x.y.z.md

+4-37
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,10 @@
1-
See the [v.x.y.z milestone](https://github.com/approvals/ApprovalTests.cpp/milestone/8?closed=1) for the full list of changes.
1+
<!-- See the [v.x.y.z milestone](https://github.com/approvals/ApprovalTests.cpp/milestone/__MILESTONE_NUMBER__?closed=1) for the full list of changes. -->
22

33
* **Breaking changes**
4-
* **Planned deprecation:** The overloads of `verify()`, `verifyAll()` and `verifyAllCombinations()` which take a `Reporter` have been deprecated.
5-
* The `Reporter` argument is `replaced` by Options - see below.
6-
* By default, there is currently no change, but this release marks the start of the [plan to remove them](/doc/explanations/WhyWeAreConvertingToOptions.md#the-plan).
7-
* If you happen to have specialised `StringUtils::toString()`, you would now need to specialize `StringMaker::toString()` instead.
8-
* Note: this was previously unsupported behavior, so we are not bumping the major version number.
9-
* Here is how to update your code:
10-
```diff
11-
template <>
12-
-std::string ApprovalTests::StringUtils::toString(const StringMakerPrintable& printable)
13-
+std::string ApprovalTests::StringMaker::toString(const StringMakerPrintable& printable)
14-
```
4+
* None
155
* **New features**
16-
* New [Options](/doc/Options.md#top) class provides consistent interface for customising the following in all `verify()`, `verifyAll()` and `verifyAllCombinations()` calls:
17-
* Reporter: see [Why We Are Converting To Options](/doc/explanations/WhyWeAreConvertingToOptions.md#top)
18-
* Scrubber: [How to Scrub Non-Deterministic Output](/doc/how_tos/ScrubNonDeterministicOutput.md#top). (#126, thank you @abdulg, @haraldreingruber, @jawn)
19-
* File extensions now customizable with `verifyAll()` and `verifyAllCombinations()`: See [File Extensions](/doc/Options.md#file-extensions) (#127)
20-
* New mechanics for [String conversions](/doc/ToString.md#top)
21-
* The class `Approvals` is now an alias for `TApprovals< ToStringCompileTimeOptions< StringMaker > >`
22-
* This is a completely backwards-compatible feature.
23-
* It has been done to support a new feature in a future release.
24-
* Our Conan.io package now supports our Boost.Test integration (#121)
6+
* None
257
* **Bug fixes**
268
* None
279
* **Other changes**
28-
* [User Guide available on Read the Docs](https://approvaltestscpp.readthedocs.io/en/latest/index.html)
29-
* This is more easily searchable and better formatted than on GitHub, and a PDF download is available. (#129)
30-
* Documented workarounds for when [running Catch2 tests in CLion gives 'unexpected exception'](/doc/Troubleshooting.md#running-catch2-tests-in-clion-gives-unexpected-exception) (#131)
31-
* Consistent macro names
32-
* All our Macros now start with `APPROVAL_TESTS_`.
33-
* We have kept the old macros, redirecting to the new ones, for backwards compatibility.
34-
35-
36-
| Old | New |
37-
| ------------------------------------------ | ----------------------------------------- |
38-
| `APPROVALTESTS_VERSION` | `APPROVAL_TESTS_VERSION` |
39-
| `APPROVALTESTS_VERSION_MAJOR` | `APPROVAL_TESTS_VERSION_MAJOR` |
40-
| `APPROVALTESTS_VERSION_MINOR` | `APPROVAL_TESTS_VERSION_MINOR` |
41-
| `APPROVALTESTS_VERSION_PATCH` | `APPROVAL_TESTS_VERSION_PATCH` |
42-
| `APPROVALTESTS_VERSION_STR` | `APPROVAL_TESTS_VERSION_STR` |
43-
| `APPROVALS_CATCH_DISABLE_FILE_MACRO_CHECK` | `APPROVAL_TESTS_DISABLE_FILE_MACRO_CHECK` |
10+
* None

build/version.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[VERSION]
22
major = 8
3-
minor = 6
3+
minor = 7
44
patch = 0
55

doc/Features.md

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ To change this file edit the source file and then execute ./run_markdown_templat
1515
## Contents
1616

1717
* [v.x.y.z](#vxyz)
18+
* [v.8.7.0](#v870)
1819
* [Options](#options)
1920
* [Scrubbers](#scrubbers)
2021
* [StringMaker and TApprovals](#stringmaker-and-tapprovals)
@@ -57,6 +58,8 @@ To change this file edit the source file and then execute ./run_markdown_templat
5758

5859
## v.x.y.z
5960

61+
## v.8.7.0
62+
6063
### Options
6164

6265
See [Options](/doc/Options.md#top).

doc/mdsource/Features.source.md

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ toc
88

99
## v.x.y.z
1010

11+
## v.8.7.0
12+
1113
### Options
1214

1315
See [Options](/doc/Options.md#top).

mdsource/README.source.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
99
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v1.4%20adopted-ff69b4.svg)](/CODE_OF_CONDUCT.md#top)
1010

11-
<a href="https://github.com/approvals/ApprovalTests.cpp/releases/download/v.8.6.0/ApprovalTests.v.8.6.0.hpp">Download the latest version (v.8.6.0) of the **single header file** here.</a>
11+
<a href="https://github.com/approvals/ApprovalTests.cpp/releases/download/v.8.7.0/ApprovalTests.v.8.7.0.hpp">Download the latest version (v.8.7.0) of the **single header file** here.</a>
1212

1313
toc
1414

0 commit comments

Comments
 (0)