https://github.com/philsquared/Catch

sort by:
Revision Author Date Message Commit Date
d3203fe Fix forwarding in SingleValueGenerator and generator creation Fixes #1809 15 December 2019, 18:46:24 UTC
9a89631 Update single header generation script to warn about unused headers 21 November 2019, 15:22:04 UTC
cfba9dc Fix wrong namespacing of benchmarking constructor helpers 21 November 2019, 15:22:04 UTC
a537cca Suppress using-namespace lint in GENERATE* macros Closes #1799 16 November 2019, 16:39:28 UTC
e1c9d55 v2.11.0 15 November 2019, 14:06:17 UTC
d512dec Mention the sonarqube reporter in release process 15 November 2019, 13:59:35 UTC
f23f968 Ensure the full benchmarking support is present in the single header Fixes #1800 15 November 2019, 10:59:43 UTC
d7b8c3a Minor cleanup in the benchmarking tests 15 November 2019, 10:59:35 UTC
32733e0 Use newer version of Python on AppVeyor 13 November 2019, 19:58:15 UTC
930f49a Split [.foo] into [.][foo] when parsing test specs b77cec05c0 fixed this problem for tagging tests, so that a test case tagged with `[.foo]` would be parsed as tagged with `[.][foo]`. This does the same for the test spec parsing. Fixes #1798 05 November 2019, 22:28:47 UTC
c409dcc Cleanup tests for C++20 04 November 2019, 09:42:34 UTC
95bfb33 Forbid copying ReusableStringStream Copying a `ReusableStringStream` would lead to "double free" of the stream, and thus it could be used in multiple places at the same time, breaking the output. 03 November 2019, 23:05:35 UTC
59d2d08 Merge pull request #1794 from cericks0n/patch-1 Fix error when period of steady_clock is not nano 03 November 2019, 17:22:56 UTC
fa6d52e Fix error when period of steady_clock is not nano On systems where std::chrono::steady_clock::period is not std::nano, benchmark tests fail to compile due to trying to convert analysis.samples from a vector of duration<double, clock::period> to a vector of std::chrono::duration<double, std::nano>. 01 November 2019, 20:52:38 UTC
5ac348c Fix compilation error in examples 31 October 2019, 15:08:37 UTC
776a468 Warning fixes in examples and tests 31 October 2019, 13:29:59 UTC
3136c4f Refactored XMLWriter to provide finer-grained control over formatting 29 October 2019, 12:59:18 UTC
74e0e73 Remove useless test 29 October 2019, 10:44:24 UTC
0685216 Mark type erasure in PredicateFunction as deprecated 28 October 2019, 14:15:13 UTC
fc320f6 Extract FunctionReturnType to catch_meta.hpp 28 October 2019, 14:15:13 UTC
5290d4b Merge pull request #1791 from catchorg/dev-reorganize-warning-suppression Rework how warning suppression in macros is done 28 October 2019, 12:13:23 UTC
7ada02e Avoid technically UB type punning when determining endianness 27 October 2019, 21:07:10 UTC
849f284 Rework how warning suppression in macros is done Previously, each warning suppression was self-contained, with its own pair of `SUPPRESS_X_WARNING` and `UNSUPPRESS_X_WARNING` macros. This had the obvious advantage of being self-containing, but it also meant that if we needed to suppress more than one warning in a single place, then we would manipulate the compiler's warning state multiple times, even though logically we would only need one layer. The new way of suppressing warnings in macros is to push compiler's warning state with `CATCH_INTERNAL_START_WARNINGS_SUPPRESSION` macro, then disable whatever macros we need with the `CATCH_INTERNAL_SUPPRESS_X_WARNINGS` macro, and then return to the previous state using `CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION`. 27 October 2019, 20:07:21 UTC
2fbd66c Improve JUnit failure report The JUnit report is improved in that: * The message shows the testing condition, not the result * The actual message has similar output than the console one 27 October 2019, 17:02:14 UTC
51b29ce Add SonarQube Generic Test Data reporter It outputs reports in the `Generic Execution Test Data` format, see https://docs.sonarqube.org/latest/analysis/generic-test/, specifically https://docs.sonarqube.org/latest/analysis/generic-test/#header-2 Close #1738 (this is a cherry-pick and fixup of that PR) 27 October 2019, 09:02:41 UTC
9a55817 Merge pull request #1776 from mvd4/bugfix/enable-floating-point-ranges Enable floating point ranges 27 October 2019, 08:17:15 UTC
c5c6888 Document that matcher combinators (&&, ||, !) do not take ownership Closes #1781 26 October 2019, 19:07:38 UTC
6a08225 Add documentation for floating point `range` generator 26 October 2019, 18:52:40 UTC
4327bab Enable `range` generator for floating point types 26 October 2019, 18:52:09 UTC
50cc14c Rework StringRef interface and internals Now it no longer tries to be this weird hybrid between an owning and non-owning reference, and is only ever non-owning. This is also reflected in its interface, for example `StringRef::isNullTerminated` is now public, and `StringRef::c_str()` has the precondition that it is true. Overview of the changes: * The `StringRef::m_data` member has been completely removed, as it had no more uses. * `StringRef::isSubstring()` has been made public and renamed to `StringRef::isNullTerminated()`, so that the name reflects what the method actually does. * `StringRef::currentData()` has been renamed to `StringRef::data()`, to be in line with common C++ containers and container-alikes. * `StringRef::c_str()` will no longer silently make copies. It instead has a precondition that `isNullTerminated()` is true. * If the user needs a null-terminated string, they should use the `std::string` conversion operator and call `c_str()` on the resulting `std::string`. * Some small optimizations in various places. * Basic functionality is now `constexpr`. 25 October 2019, 11:57:52 UTC
87b745d v2.10.2 24 October 2019, 16:41:25 UTC
7d0b205 Prevent warning suppression from leaking when registering a listener 21 October 2019, 22:10:01 UTC
8fb1219 docs: command-line: Add example to specify tests by file name. 21 October 2019, 21:51:33 UTC
23c80bc Provide workaround for platforms where INFINITY is double Fixes #1782 21 October 2019, 16:33:26 UTC
a2c8dce v2.10.1 20 October 2019, 19:03:22 UTC
1e379de Fix "ldd" -> "lld" typo in docs 20 October 2019, 18:57:55 UTC
4eea438 Update updateWandbox script to account for the new Wandbox API response 20 October 2019, 18:56:20 UTC
407ee0a Add a section on slow linking under MinGW to "Known Limitations" docs Unless someone steps up to fix the long link times with a set of unobtrusive changes, the recommended solution will remain "use a better linker". Related to #1205, #1247, and #1637 Closes #1247 Closes #1637 20 October 2019, 17:52:39 UTC
060a41e Suppress false positive from clang-analyzer Fixes issue #1230 20 October 2019, 15:27:09 UTC
90825a4 Add more tests for reading test specs from file Related to #1770 20 October 2019, 13:14:50 UTC
9e8ae7d Use scientific notation for the WithinULP matcher This should now properly handle small numbers which would previously output something like `[0.00000000000000019, 0.00000000000000019]`, which does not allow user to read the numbers properly. Closes #1760 20 October 2019, 10:30:21 UTC
8485684 Fixes #1766: Catch terminates when parsing invalid test name 19 October 2019, 19:14:06 UTC
01ef707 Allow in-tree builds where Catch2 is just a subproject Closes #1773 Closes #1774 18 October 2019, 16:49:44 UTC
ae14a47 TemplateTests: suppress -Wunused-template warning in template test cases this warning was introduced by rework to support NTTPs since we have implementation macro for NTTPs and normal template test cases warning is going to be suppressed Fixes #1762 18 October 2019, 16:38:39 UTC
f2b23db TemplateTests: fix compilation with ICC ICC in some cases fails on trailing return type with decltype Closes #1748 18 October 2019, 10:35:09 UTC
1aa98c7 add a note how to run selftests using multiconfig generators 17 October 2019, 18:23:51 UTC
3195c24 Remove JSON library from users 17 October 2019, 18:20:02 UTC
31906d8 Add parenthesis to prevent macro expansions of min/max Closes #1772 17 October 2019, 14:40:37 UTC
91fa553 Add test for including unguarded windows.h If you do this, you are wrong, but apparently people expect libraries to work around intrusive lower cased macros. Oh well. 17 October 2019, 09:15:42 UTC
7c9f92b v2.10.0 13 October 2019, 21:44:18 UTC
a92a7d0 Rewrite documentation for floating point matchers 13 October 2019, 19:31:48 UTC
e4d61e4 Fix baselines 13 October 2019, 19:26:51 UTC
9ba48e2 Remove superfluous includes in exception matchers 13 October 2019, 18:49:36 UTC
2cc0c71 Add a matcher that checks exception's message Only works for exceptions that publicly derive from `std::exception` and the matching is done exactly, including case and whitespace. Closes #1649 Closes #1728 # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # On branch master # Your branch is up-to-date with 'origin/master'. # # Changes to be committed: # modified: ../docs/matchers.md # modified: ../include/internal/catch_capture_matchers.h # modified: ../projects/CMakeLists.txt # modified: ../projects/SelfTest/Baselines/compact.sw.approved.txt # modified: ../projects/SelfTest/Baselines/console.std.approved.txt # modified: ../projects/SelfTest/Baselines/console.sw.approved.txt # modified: ../projects/SelfTest/Baselines/junit.sw.approved.txt # modified: ../projects/SelfTest/Baselines/xml.sw.approved.txt # modified: ../projects/SelfTest/UsageTests/Matchers.tests.cpp # # Untracked files: # ./ # ../clang-full/ # ../clang-test/ # ../clang10-build/ # ../coverage-build/ # ../gcc-build/ # ../gcc-full/ # ../include/internal/catch_matchers_exception.cpp # ../include/internal/catch_matchers_exception.hpp # ../misc-build/ # ../msvc-sln/ # ../notes.txt # ../test-install/ # 13 October 2019, 18:37:07 UTC
28663fb Use the right overload of std::nextafter in tests 13 October 2019, 11:36:22 UTC
d2d418a Add a Relative Comparison matcher for floating point numbers It checks Knuth's _close enough with tolerance_ relationship, that is `|lhs - rhs| <= epsilon * max(|lhs|, |rhs|)`, rather then the _very close with tolerance_ relationship that can be written down as `|lhs - rhs| <= epsilon * min(|lhs|, |rhs|)`. This is because it is the more common model around the internet, and as such is likely to be less surprising to the users. In the future we might want to provide the other model as well. Closes #1746 13 October 2019, 09:56:50 UTC
c8db4e7 Add a from_range(Container) overload to the generator helpers 09 October 2019, 12:51:36 UTC
1c57496 Merge pull request #1769 from amitherman95/amitherman-1767 Patch:Failure to pass special chars through input file 09 October 2019, 12:16:50 UTC
3109add Add tests for the -f/--input-file command line argument 09 October 2019, 10:54:13 UTC
adb4789 Patch:Failure to apply filters through external file 09 October 2019, 09:43:06 UTC
75200e1 Merge pull request #1768 from RT222/master Simplified benchmark output with --benchmark-no-analysis 08 October 2019, 19:07:35 UTC
a5a22cd Have the random generators use the global rng instance This means that if you nest multiple random generators inside one test case, they will not return the same sequence of numbers. Idea taken from #1736 by Amit Herman. Closes #1736 Closes #1734 07 October 2019, 19:53:07 UTC
535da5c Introduce Catch's own RNG based on the PCG family of RNGs In the future, we will also want to introduce our own `uniform_int_distribution` and `uniform_real_distribution` to get repeatable test runs across different platforms. 07 October 2019, 17:56:23 UTC
2331249 Simplified benchmark output with --benchmark-no-analysis Removed unused informations from benchmarks output when the --benchmark-no-analysis flag is used, making the results easier to read. 07 October 2019, 13:40:00 UTC
319cb9e Add a generator that takes an iterator pair 06 October 2019, 11:55:10 UTC
b8b765d Merge pull request #1765 from kevingranade/patch-1 Add Cataclysm:Dark Days Ahead to project list 06 October 2019, 10:41:46 UTC
a0ebd63 Add Cataclysm:Dark Days Ahead to project list 06 October 2019, 03:18:31 UTC
4bd2c3a Fix compilation error with CATCH_CONFIG_GLOBAL_NEXTAFTER Wrong nesting of namespaces resulted in the `Catch` namespace being ambigous between `::Catch` and `::{anon}::Catch` namespaces. This should fix it. Closes #1761 05 October 2019, 19:03:46 UTC
c38a5ca Allow full range of target ULP values for the ULPMatcher Previously it was limited to roughly 2 billion ULPs, rather than the roughly 2^64 possible ones. 05 October 2019, 11:38:22 UTC
ebc5609 Add test for INF == Approx(1) 04 October 2019, 12:19:39 UTC
fcda35f update name of Value Generators in doc to match class names 04 October 2019, 11:31:37 UTC
02ee130 Special case Approx(inf) to better follow user expectations 04 October 2019, 11:28:43 UTC
815f995 Do not explicitly install conan Instead, let it be installed as a dependency of `conan-package-tools` to avoid trouble with the fact that pip is really bad at version resolution, and that up-to-date version of the `conan` package is not supported by up-to-date version of the `conan-package-tools` package. 02 October 2019, 22:00:17 UTC
da0062f Merge pull request #1752 from amitherman95/amitherman-1737 Escape characters bug patch(v2.9.2) 22 September 2019, 08:48:08 UTC
de42f8a Fix escaping of quotes in coverage helper 21 September 2019, 21:19:45 UTC
af84f13 Add documentation for the table generator helper 20 September 2019, 23:00:53 UTC
fc2066b Add tests for escaping special characters in CLI 20 September 2019, 22:50:17 UTC
2bcff9d Escape characters bug patch(v2.9.2) 20 September 2019, 22:46:58 UTC
3beccfb Remove the no longer used is_unique type trait It was used in checking that types in TEMPLATE_TEST_CASE and friends were unique, but this was removed for v2.8.0 (#1628). Since there are no further uses of this trait, the simplest thing to do is to just remove it. Fixes #1757 20 September 2019, 21:28:19 UTC
af8b253 Ignore leading/trailing whitespace in test/section specs The leading/trailing whitespace is problematic because of e.g. `WHEN` macro having preceeding whitespace for alignment, and it is generally messy. Credits to Phil who did lot of the original work. Closes #1708 09 September 2019, 12:28:11 UTC
a156440 Reinline some StringRef methods with trivial bodies 08 September 2019, 19:08:37 UTC
dab0296 Add test for past-the-end substr on StringRef 08 September 2019, 19:07:21 UTC
9f4c477 Remove (mostly) unused overloads of StringRef operator + 08 September 2019, 19:01:33 UTC
293012a Inline SourceLineInfo::empty definition 08 September 2019, 16:20:49 UTC
e2b3443 Do not blindly access empty StringRefs 08 September 2019, 15:44:56 UTC
7b865da Make StringRef's operator std::string explicit This way it is explicit when there is a `StringRef` -> `std::string` conversion and makes it easier to look for allocations that could be avoided. Doing this has already removed one allocation per registered test case, as there was a completely pointless `StringRef` -> `std::string` conversion when parsing tags of a test case. 08 September 2019, 13:58:10 UTC
1436253 Check for empty expression properly The old code was a left-over from the times when the `capturedExpression` member was a `const char*`, which could always be indexed. With the change to use `StringRef`, blindly indexing 0th element is invalid, as it is not indexable part of a StringRef. 08 September 2019, 12:35:01 UTC
a5bb3e3 Small updates to include directives (#1726) Fixed some inconsistencies in include directives. 08 September 2019, 12:25:23 UTC
923db16 Use StringRefs through the enum registration 08 September 2019, 12:14:46 UTC
fbbaadb Use StringRef literal for unknown enum values instead of string lit 08 September 2019, 12:14:14 UTC
dd1f0f1 Add test for --filename-as-tags 07 September 2019, 18:43:14 UTC
d27d580 Add test for --libidentify command line flag 07 September 2019, 18:36:12 UTC
6da00c1 Split out the rest of string manipulation tests 07 September 2019, 18:22:36 UTC
fe967b1 Remove the ill-considered StringRef::numberOfCharacters It never counted characters, only codepoints. If you think these are interchangeable, you should not touch non-ascii text. 07 September 2019, 18:13:22 UTC
f2c2711 Add trim for StringRef 07 September 2019, 09:31:00 UTC
b77ab74 Start adding tests for string manip functions 06 September 2019, 16:50:57 UTC
4038ee6 Stop compilation if registering an enum could truncate its value We probably want to use a bigger type (e.g. `int64_t`) later on, but the is a mess right now anyway. 06 September 2019, 16:36:59 UTC
789f359 Do not write singular characters into stream as C-strings 06 September 2019, 16:30:16 UTC
6e8d769 Unify handling of __has_include checks 06 September 2019, 11:38:58 UTC
1189a73 Do not assume that version placeholders contain ")" 06 September 2019, 11:25:39 UTC
back to top