blob: df633fd050aeb235d14878f3a763b4eea3e84db9 [file] [log] [blame] [view]
Phil Nash0952b762017-02-28 14:19:09 +00001# 1.8.0
2
3### New features/ minor changes
4
5* Matchers have new, simpler (and documented) interface.
6 * Catch provides string and vector matchers.
Phil Nash417202b2017-03-01 08:22:38 +00007 * For details see [Matchers documentation](matchers.md).
Phil Nash0952b762017-02-28 14:19:09 +00008* Changed console reporter test duration reporting format (#322)
9 * Old format: `Some simple comparisons between doubles completed in 0.000123s`
10 * New format: `xxx.123s: Some simple comparisons between doubles` _(There will always be exactly 3 decimal places)_
11* Added opt-in leak detection under MSVC + Windows (#439)
12 * Enable it by compiling Catch's main with `CATCH_CONFIG_WINDOWS_CRTDBG`
13* Introduced new compile-time flag, `CATCH_CONFIG_FAST_COMPILE`, trading features for compilation speed.
Phil Nash470561c2017-03-01 08:24:16 +000014 * Moves debug breaks out of tests and into implementation, speeding up compilation time
Phil Nash0952b762017-02-28 14:19:09 +000015 * _More changes are coming_
16* Added [TAP (Test Anything Protocol)](https://testanything.org/) and [Automake](https://www.gnu.org/software/automake/manual/html_node/Log-files-generation-and-test-results-recording.html#Log-files-generation-and-test-results-recording) reporters.
17 * These are not present in the default single-include header and need to be downloaded from GitHub separately.
Phil Nash417202b2017-03-01 08:22:38 +000018 * For details see [documentation about integrating with build systems](build-systems.md).
Phil Nash0952b762017-02-28 14:19:09 +000019* XML reporter now reports filename as part of the `Section` and `TestCase` tags.
20* `Approx` now supports an optional margin of absolute error
21 * It has also received [new documentation]().
22
23### Fixes
24* Silenced C4312 ("conversion from int to 'ClassName *") warnings in the evaluate layer.
25* Fixed C4512 ("assignment operator could not be generated") warnings under VS2013.
26* Cygwin compatibility fixes
27 * Signal handling is no longer compiled by default.
28 * Usage of `gettimeofday` inside Catch should no longer cause compilation errors.
29* Improved `-Wparentheses` supression for gcc (#674)
30 * When compiled with gcc 4.8 or newer, the supression is localized to assertions only
31 * Otherwise it is supressed for the whole TU
32* Fixed test spec parser issue (with escapes in multiple names)
33
34### Other
35* Various documentation fixes and improvements
36
37
Phil Nashd08cee22017-02-13 16:15:42 +000038# 1.7.2
39
40### Fixes and minor improvements
41Xml:
42
43(technically the first two are breaking changes but are also fixes and arguably break few if any people)
44* C-escape control characters instead of XML encoding them (which requires XML 1.1)
45* Revert XML output to XML 1.0
46* Can provide stylesheet references by extending the XML reporter
47* Added description and tags attribites to XML Reporter
48* Tags are closed and the stream flushed more eagerly to avoid stdout interpolation
49
50
51Other:
52* `REQUIRE_THROWS_AS` now catches exception by `const&` and reports expected type
53* In `SECTION`s the file/ line is now of the `SECTION`. not the `TEST_CASE`
54* Added std:: qualification to some functions from C stdlib
55* Removed use of RTTI (`dynamic_cast`) that had crept back in
56* Silenced a few more warnings in different circumstances
57* Travis improvements
58
Martin Hořeňovský7b8a27e2017-02-07 10:06:52 +010059# 1.7.1
60
61### Fixes:
62* Fixed inconsistency in defining `NOMINMAX` and `WIN32_LEAN_AND_MEAN` inside `catch.hpp`.
63* Fixed SEH-related compilation error under older MinGW compilers, by making Windows SEH handling opt-in for compilers other than MSVC.
64 * For specifics, look into the [documentation](docs/configuration.md).
65* Fixed compilation error under MinGW caused by improper compiler detection.
66* Fixed XML reporter sometimes leaving an empty output file when a test ends with signal/structured exception.
67* Fixed XML reporter not reporting captured stdout/stderr.
68* Fixed possible infinite recursion in Windows SEH.
69* Fixed possible compilation error caused by Catch's operator overloads being ambiguous in regards to user-defined templated operators.
70
Martin Hořeňovský7b8a27e2017-02-07 10:06:52 +010071## 1.7.0
Martin Hořeňovskýce37f482017-02-01 21:47:43 +010072
73### Features/ Changes:
74* Catch now runs significantly faster for passing tests
75 * Microbenchmark focused on Catch's overhead went from ~3.4s to ~0.7s.
76 * Real world test using [JSON for Modern C++](https://github.com/nlohmann/json)'s test suite went from ~6m 25s to ~4m 14s.
77* Catch can now run specific sections within test cases.
78 * For now the support is only basic (no wildcards or tags), for details see the [documentation](docs/command-line.md).
79* Catch now supports SEH on Windows as well as signals on Linux.
80 * After receiving a signal, Catch reports failing assertion and then passes the signal onto the previous handler.
81* Approx can be used to compare values against strong typedefs (available in C++11 mode only).
82 * Strong typedefs mean types that are explicitly convertible to double.
83* CHECK macro no longer stops executing section if an exception happens.
84* Certain characters (space, tab, etc) are now pretty printed.
85 * This means that a `char c = ' '; REQUIRE(c == '\t');` would be printed as `' ' == '\t'`, instead of ` == 9`.
86
87### Fixes:
88* Text formatting no longer attempts to access out-of-bounds characters under certain conditions.
89* THROW family of assertions no longer trigger `-Wunused-value` on expressions containing explicit cast.
90* Breaking into debugger under OS X works again and no longer required `DEBUG` to be defined.
91* Compilation no longer breaks under certain compiler if a lambda is used inside assertion macro.
92
93### Other:
94* Catch's CMakeLists now defines install command.
95* Catch's CMakeLists now generates projects with warnings enabled.
96
97
Martin Hořeňovskýce37f482017-02-01 21:47:43 +010098## 1.6.1
Martin Hořeňovský9a566092017-01-20 12:49:59 +010099
100### Features/ Changes:
101* Catch now supports breaking into debugger on Linux
102
103### Fixes:
104* Generators no longer leak memory (generators are still unsupported in general)
105* JUnit reporter now reports UTC timestamps, instead of "tbd"
106* `CHECK_THAT` macro is now properly defined as `CATCH_CHECK_THAT` when using `CATCH_` prefixed macros
107
108### Other:
109* Types with overloaded `&&` operator are no longer evaluated twice when used in an assertion macro.
110* The use of `__COUNTER__` is supressed when Catch is parsed by CLion
111 * This change is not active when compiling a binary
112* Approval tests can now be run on Windows
113* CMake will now warn if a file is present in the `include` folder but not is not enumerated as part of the project
114* Catch now defines `NOMINMAX` and `WIN32_LEAN_AND_MEAN` before including `windows.h`
115 * This can be disabled if needed, see [documentation](docs/configuration.md) for details.
116
117
Martin Hořeňovský9a566092017-01-20 12:49:59 +0100118## 1.6.0
Phil Nash3b2f2062017-01-11 16:43:56 +0000119
120### Cmake/ projects:
121* Moved CMakeLists.txt to root, made it friendlier for CLion and generating XCode and VS projects, and removed the manually maintained XCode and VS projects.
122
123### Features/ Changes:
Phil Nash1ff0acf2017-01-11 16:50:35 +0000124* Approx now supports `>=` and `<=`
125* Can now use `\` to escape chars in test names on command line
Phil Nash3b2f2062017-01-11 16:43:56 +0000126* Standardize C++11 feature toggles
127
128### Fixes:
129* Blue shell colour
Phil Nash1ff0acf2017-01-11 16:50:35 +0000130* Missing argument to `CATCH_CHECK_THROWS`
Phil Nash3b2f2062017-01-11 16:43:56 +0000131* Don't encode extended ASCII in XML
Phil Nashe6aa1f42017-01-11 17:14:28 +0000132* use `std::shuffle` on more compilers (fixes deprecation warning/error)
Phil Nash1ff0acf2017-01-11 16:50:35 +0000133* Use `__COUNTER__` more consistently (where available)
Phil Nash3b2f2062017-01-11 16:43:56 +0000134
135### Other:
136* Tweaks and changes to scripts - particularly for Approval test - to make them more portable
137
Phil Nash3b2f2062017-01-11 16:43:56 +0000138
Phil Nash0952b762017-02-28 14:19:09 +0000139# Older versions
140Release notes were not maintained prior to v1.6.0, but you should be able to work them out from the Git history
141
Phil Nash3b2f2062017-01-11 16:43:56 +0000142---
143
144[Home](Readme.md)