Phil Nash
9688891868
Fix issue with fatal errors and non-failing assertions
...
Fixes #990
2017-08-10 21:44:54 +02:00
Martin Hořeňovský
4f21bb72ff
Add tests for #961
2017-08-10 21:38:07 +02:00
Martin Hořeňovský
b435e0d7c7
Make default reporter configurable at compile time
...
Closes #978
2017-08-10 16:45:38 +02:00
Martin Hořeňovský
ba0a09fd9e
Update documentation with changes from 7e4038d
2017-08-10 16:43:17 +02:00
Martin Hořeňovský
7e4038d848
Capture std::clog writes and combine them with std::cerr writes ( #989 )
...
This also introduces Catch::clog() method to allow embedded targets
to override std::clog usage with their own stream (presumably null-sink),
similarly to how Catch::cout() and Catch::cerr() are used.
Fixes #989
2017-08-09 15:28:40 +02:00
Martin Hořeňovský
92d714ee12
Update updateVcpkgPackage
script for the new port format
2017-08-08 23:04:39 +02:00
Martin Hořeňovský
705a1bf527
Add wandbox to release process documentation
...
Also some formatting and wording changes.
2017-08-08 23:04:10 +02:00
Cody Han
d5613fb18a
Update matchers docs to reflect namespace usage
2017-08-03 19:11:21 +02:00
Martin Hořeňovský
62875c857e
Add a landing page link to wandbox with catch preloaded
...
Idea shamelessly stolen from nlohmann/json
2017-08-01 23:45:35 +02:00
Danila Sukharev
ec2074e558
Adding more flexibility into the cmake catch parsing script ( #971 )
...
* Adding more flexibility into the cmake catch parsing script
2017-08-01 17:33:53 +02:00
Martin Hořeňovský
7575749e56
Fix compilation error on older compilers
2017-08-01 17:21:06 +02:00
Martin Hořeňovský
8a2ff20982
Address some of the Resharper finds for Catch 1
...
Closes #957 as the other findings are mostly noise that is pointless
to fix in a branch that will be soon EoLd.
2017-07-31 12:31:45 +02:00
Anton Vorobyev
d3377c791d
Initial support for native IBM i ILE C++ ( #976 )
...
* - Initial support for native IBM i ILE C++
Signed-off-by: zeromem <zeromem2@gmail.com>
2017-07-31 10:47:42 +02:00
Martin Hořeňovský
c5dfa73d56
Disable build broken by travis changes
...
It should be reenabled later, but I don't have time to investigate
right now.
2017-07-29 08:45:52 +02:00
Fran García Salomón
d65091fa06
Fix for JUnit reporter when using dynamically generated sections ( #963 )
...
* BySectionInfo should also take into account the section name in addition to the source code line
2017-07-23 17:13:44 +02:00
Martin Hořeňovský
7a22bad763
Addressed some static analysis warnings
...
Based on findings in #957
2017-07-19 09:50:08 +02:00
Phil Nash
8ebe94ca2e
Added NOLINT annotations to selectively suppress clang_tidy warnings
2017-07-10 18:43:07 +01:00
Martin Hořeňovský
106d7e2a74
Initialize JunitReporter::unexpectedExceptions in constructor
...
This is not needed for correctness, but will prevent PVS warning
from triggering, and there is basically no performance difference.
Closes #951
2017-07-10 10:30:17 +02:00
Neal Coombes
a53ea30723
Eliminate some work when results won't be reported.
2017-07-07 01:34:12 +02:00
Ivan Kush
8d380a7399
added 'args' argument parser library
2017-07-05 15:55:28 +02:00
Martin Hořeňovský
3083de9ea6
Fix typo in README
2017-07-05 15:54:38 +02:00
Phil Nash
431e8d06e7
Added survey monkey link
2017-07-04 09:10:36 +01:00
Markus Werle
6f32db35af
Update tutorial.md
2017-06-28 20:54:31 +02:00
Uilian Ries
7013e388f7
#926 Update Conan test version by release
...
Signed-off-by: Uilian Ries <uilianries@gmail.com>
2017-06-28 16:45:42 +01:00
Phil Nash
0270afb21b
Updated license
2017-06-28 16:44:46 +01:00
Phil Nash
df7c5622b9
Merge branch 'feature/conan' of https://github.com/uilianries/Catch
2017-06-27 11:48:55 +01:00
Martin Hořeňovský
ee67ac6b7c
v1.9.6
2017-06-27 12:21:48 +02:00
Baruch Burstein
8a14af701e
If --list-extra-info is specified with --list-test-names-only, only output one list
2017-06-25 17:12:29 +02:00
Martin Hořeňovský
07c6bfc3b9
--extra-info -> --list-extra-info, behaves like other --list-* flags
2017-06-25 17:12:29 +02:00
Baruch Burstein
616f7235ef
add --extra-info flag
...
this will add line info to test lists, and test descriptions to the long
form of the test list
2017-06-25 17:12:29 +02:00
Neal Coombes
396ecf6021
Cache std::ostringstream between assertions.
...
This is not thread safe, but I think that was already true of Catch.
The construction/destruction of the std::ostringstream is where the
vast majority of time is spent per assertion. A simple test of
100000000 CHECK()s is reduced from around 60s to 7.4s
2017-06-25 15:53:59 +02:00
Uilian Ries
3491804598
#926 Update Conan version by release
...
- Update release scripts to increment Conan version
Signed-off-by: Uilian Ries <uilianries@gmail.com>
2017-06-23 16:03:36 -03:00
Uilian Ries
6234e3d54d
#926 Conan recipe for Catch single header
...
- Insert catch.hpp (single header) to package
- Copy BDDTests and TrickyTest to validate Catch package
Signed-off-by: Uilian Ries <uilianries@gmail.com>
2017-06-23 10:34:56 -03:00
Martin Hořeňovský
a6cdcd43aa
Added "How to test changes in PR" section to documentation
...
Also linked it from PR template.
Closes #936
2017-06-22 18:56:10 +02:00
Neal Coombes
dcab8a5971
Performance improvement in AssertionInfo.
...
By using char const * instead of std::string we avoid significant
copying per assertion. In a simple loop with 10000000 CHECKS on
my system, this reduces the run time from 9.8s to 6s.
2017-06-22 18:03:47 +02:00
Martin Hořeňovský
017a63da62
v1.9.5
2017-06-15 13:08:26 +02:00
Martin Hořeňovský
b90d0b7267
Disable deprecation warning of std::uncaught_exception
...
We might prefer to use `std::uncaught_exceptions` in the future, but I
would prefer not to bring in more configuration into Catch Classic
Closes #927
2017-06-15 11:43:31 +02:00
Martin Hořeňovský
efba988ccc
Fix how GCC version is detected when checking for __COUNTER__
...
Fixes #928
2017-06-13 18:20:59 +02:00
Phil Nash
004228efb2
Merge pull request #855 from kainjow/objc-tostring-link
...
Fix Catch::toString() linker error when main() is compiled as C++
2017-06-11 23:06:38 +01:00
Martin Hořeňovský
e0aaba6cf8
Actually link #923 from the documentation
2017-06-06 16:46:46 +02:00
Martin Hořeňovský
a09bef23ed
Refer to #923 in reporter documentation
2017-06-06 16:43:14 +02:00
Martin Hořeňovský
3e018ef131
Add link to external gcov/lcov example to documentation
...
An alternate take on #916 , that better slots into the existing
documentation.
Closes #916
2017-06-04 12:17:59 +02:00
Martin Hořeňovský
adb66f55a7
Don't include warning headers from catch_xmlwriter.hpp
...
This prevents Catch from disabling `Wpadded` for Clang inside test files
(files that do not define either `CATCH_CONFIG_MAIN` or
`CATCH_CONFIG_RUNNER`).
catch_suppress_warnings.h and catch_reenable_warnings.h should be
included only once*, so that the stitching script includes them as the
first and last header respectively, since it only includes each header
once. This caused a bug, where the first one was included properly, but
the second one was included prematurely, from catch_xmlwriter.hpp, and
thus was guarded by `CATCH_IMPL`.
* At least until the stitching script is changed to accomodate common
warning disabling header.
Fixes #871
2017-06-02 19:10:57 +02:00
Martin Hořeňovský
377c9a746d
Cosmetic fixes (whitespace and spelling)
2017-05-27 14:42:54 +02:00
Martin Hořeňovský
ea48ae0f75
Add test for #914 (stringify truthy exprs in standard way)
2017-05-27 14:42:05 +02:00
twhittock
2d1739b429
ExpressionLhs reconstruction based on value, not truthiness ( #914 )
...
Types which are truthy, but have more information than the truthiness in their string conversion were showing up as 'true' or 'false' instead of showing the underlying type's string value.
2017-05-27 14:09:43 +02:00
Martin Hořeňovský
1c59034be4
Merge pull request #911 from dvirtz/master
...
CTest integration script enhancements
2017-05-27 13:52:55 +02:00
Martin Hořeňovský
52a84788e0
Add Inscopix to commercial users
...
Closes #918
2017-05-27 12:23:35 +02:00
Martin Hořeňovský
3e328f55fc
Merge pull request #913 from Carrotstrip/master
...
fixed spelling error in tutorial.md
2017-05-21 11:17:25 +02:00
Austin L Wolfgram
b18e67522f
fixed spelling error
2017-05-20 15:10:42 -04:00