Phil Nash
346723c9b6
Renamed STRINGIFY_ENUM to REGISTER_ENUM
2019-04-21 20:15:26 +03:00
Phil Nash
5a74fcc9c9
Removed IEnumInfo (just use EnumInfo directly)
2019-04-21 20:09:58 +03:00
Phil Nash
9d5d719868
Changed splitString to splitStringRef
...
Now takes and returns StringRefs
2019-04-21 20:03:44 +03:00
Phil nash
02f13cf95a
Made onto dev build and regenerated single header
2019-04-04 16:02:58 +01:00
Phil nash
43428c6093
First commit of STRINGIFY_ENUM
2019-04-04 15:55:46 +01:00
Martin Hořeňovský
08147a23f9
Fix ObjC matchers
...
Closes #1571
2019-04-03 20:32:11 +02:00
Ziv Shahaf
8af8704089
support for printing test filters (PR #1585 )
2019-04-03 20:24:52 +02:00
Martin Hořeňovský
3816e99d0c
Add GENERATE_COPY and GENERATE_VAR capturing generator macros
2019-03-31 14:11:10 +02:00
Martin Hořeňovský
b77cec05c0
Fix test tag parsing to split [.foo] into [.][foo]
2019-03-29 10:48:56 +01:00
Omer Ozarslan
54089c4c8c
Deducing return type of map generator helper ( #1576 )
...
* Deduce map return type implicitly
Giving the first template argument to map generator function to deduce
return type is now optional even if the return type is different from
the type generated by mapped generator.
2019-03-24 15:44:22 +01:00
Martin Hořeňovský
296d447452
Merge pull request #1575 from alabuzhev/warning_ntstatus
...
Suppress warning caused by ntstatus.h inclusion
2019-03-20 15:22:27 +01:00
Alex Alabuzhev
0531965349
Suppress warning caused by ntstatus.h inclusion
2019-03-19 23:57:56 +00:00
Tadeusz Puźniakowski
a1cdff4f18
raspigcd - opensource-users
...
Added raspigcd that uses Catch2 for tests
2019-03-19 20:35:59 +01:00
Steve Hollasch
4611125801
generators.md: fix extraneous back tick in doc
2019-03-14 09:14:02 +01:00
Clare Macrae
e509012e64
Update blog URL and fic typos in tutorial.md
2019-03-09 18:02:29 +01:00
Clare Macrae
448825db03
Readability improvements for assertions.md
2019-03-09 18:02:29 +01:00
Clare Macrae
0fff8e7791
Add ApprovalTests.cpp to list of open source users
2019-03-09 18:02:29 +01:00
Martin Hořeňovský
68a3c129ac
Merge pull request #1562 from claremacrae/patch-2
...
Update url of blog post
2019-03-09 17:35:08 +01:00
Martin Hořeňovský
1ce5ec9b74
Merge pull request #1565 from inobelar/patch-1
...
Added override keyword near IntRange::describe() method
2019-03-09 17:33:42 +01:00
Yurii Nakonechnyi
37a4e32319
Added override keyword near IntRange::describe() method
2019-03-09 15:05:27 +02:00
Clare Macrae
0424c9a62c
Update url of blog post
2019-03-08 08:56:00 +00:00
Martin Hořeňovský
d633072794
v2.7.0
2019-03-07 21:44:57 +01:00
Martin Hořeňovský
51ed08be22
Take changes to Clara from master
2019-03-07 20:48:36 +01:00
Omer Ozarslan
1701325caa
Document unscoped info
2019-03-06 22:04:35 +01:00
Omer Ozarslan
7aee973a4a
Add tests for unscoped info
...
Update approval tests as new tests are added for messaging.
2019-03-06 22:04:35 +01:00
Omer Ozarslan
99575b45db
Add unscoped info functionality
...
This adds UNSCOPED_INFO macro, creating a log message that is stored
until the end of next assertion or the end of test case, whichever comes
first. These messages are not scoped locally, unlike messages created by
INFO macro.
2019-03-06 22:04:35 +01:00
Martin Hořeňovský
1a03918455
Force flush streams in tests for #1514
...
This avoids the problem where writes to stderr/stdout stop being
line-buffered when stderr/stdout is redirected to a file, which led
to different order of outputs between Linux and Windows in our tests.
2019-03-06 21:53:26 +01:00
Martin Hořeňovský
bd667f4d69
Add comma-escaping in test specs to ParseAndAddCatchTests.cmake
...
Fixes #1527
2019-03-03 13:11:11 +01:00
Martin Hořeňovský
28db5ed4c9
Add tests for #1514
...
If the regression comes back, it will only be caught by approvals,
but that's better than nothing.
2019-03-02 21:22:47 +01:00
SimonChh
7d2451f119
Fix output redirection in failing tests ( #1525 )
...
Fixes #1514
2019-03-02 21:18:48 +01:00
Martin Hořeňovský
5bf6e47381
Add another example for generators
2019-02-26 12:52:21 +01:00
Martin Hořeňovský
29b3b7ae6b
Namespace our type traits in catch_meta
...
Previously they could conflict with user-defined type traits that
were in the global namespace.
Fixes #1548
2019-02-23 21:06:20 +01:00
Martin Hořeňovský
ef5fd8d42f
Add another test for FilterGenerator
2019-02-23 20:37:35 +01:00
Martin Hořeňovský
693647c43f
Add ChunkGenerator
...
This generator collects values from the underlying generator until it
has a specified amount of them, and then returns them in one "chunk".
In case the underlying generator does not have enough elements for
a specific chunk, the left-over elements are discarded.
Closes #1538
2019-02-23 20:28:58 +01:00
Martin Hořeňovský
288387fa10
Cleanup: move things around
2019-02-23 17:16:28 +01:00
Rick de Water
165de9b072
Add RangeGenerator
2019-02-23 16:58:34 +01:00
hbina4326
bf4771a7ed
Script helper getBuildExecutable now works properly on Windows
2019-02-23 14:44:40 +01:00
Martin Hořeňovský
7012a31a39
Fix VS2015 warning issue
2019-02-20 10:14:46 +01:00
Martin Hořeňovský
269303d9d9
Introduce random number (Integral and Float) generators
2019-02-20 00:09:15 +01:00
Khem Raj
e8bfd882e8
Fix -Wdefaulted-function-deleted warning
...
Clang8 warns
catch_interfaces_reporter.h:84:25: error: explicitly defaulted move assignment operator is implicitly deleted [-Werror,-Wdefaulted-function-deleted]
| AssertionStats& operator = ( AssertionStats && ) = default;
| ^
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-02-18 20:42:42 +01:00
Paul Lesur
2bd0722470
fix "code will never be executed" under clang
2019-02-18 19:01:43 +01:00
Igor Akhmetov
45ebf17ec7
Do not open the output file twice
...
7f229b4f
caused the output file to get opened twice, while
some types of files (e.g. named pipes) can be only opened once.
After this change Session::applyCommandLine opens the output file
only when there is an error to print.
2019-02-18 18:59:54 +01:00
Martin Hořeňovský
093b72416d
Remove non-ASCII characters from the distributable parts
...
Closes #1542
2019-02-18 10:33:41 +01:00
Tobias Ribizel
c99a346490
Use correct type name instead of index for TEMPLATE_PRODUCT_TEST_CASE ( #1544 )
...
Previously, for a TEMPLATE_PRODUCT_TEST_CASE("Test" ..., T, (P1, P2)),
the generated test case names were
Test - 0
Test - 1
With this commit, the correct typename is used:
Test - T<P1>
Test - T<P2>
-----------
MSVC needs another indirection to evaluate INTERNAL_CATCH_STRINGIZE
and also inserts a space before theINTERNAL_CATCH_STRINGIZE_WITHOUT_PARENS
parameter, which we can get rid of by pointer arithmetic.
2019-02-17 21:52:22 +01:00
Martin Hořeňovský
359a54b6bd
Merge pull request #1539 from mattclarke/patch-1
...
Docs: missing hyphens and full-stops added
2019-02-17 21:24:42 +01:00
Girts Folkmanis
711d750ca7
use "std" namespace for "sprintf"
...
Some compilers don't export C compatibility functions in `::`. Using
`std::sprintf` should work for those (and all other compilers).
Reference: https://en.cppreference.com/w/cpp/header#C_compatibility_headers
2019-02-17 21:02:21 +01:00
Matt Clarke
95f7712808
Missing hyphens and full-stops added
...
The use of full-stops is inconsistent, so I have added them where there are none.
The other option was to remove them instead.
2019-02-13 10:13:14 +01:00
Martin Hořeňovský
dbbab8727c
v2.6.1
2019-02-12 19:58:12 +01:00
Martin Hořeňovský
5d4061af12
Update release process docs to include PGP-signing
2019-02-12 19:33:08 +01:00
Darren Gilroy
9ccea82d7f
Catch: resolve inconsistency in CATCH_REQUIRE_THROWS
...
The REQUIRE_THROWS and CATCH_REQUIRE_THROWS macros have
a subtle inconsistency in their implementation which can
cause a warning if [-Wunused-value] is used.
This commit changes CATCH_REQUIRE_THROWS so it has the
same implementation as REQUIRE_THROWS
It looks like REQUIRE_THROWS was change in commit
fae0fa4ec
but not CATCH_REQUIRE_THROWS.
Similar changes for CATCH_CHECK_THROWS
2019-02-09 17:42:53 +01:00