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
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
dvirtz
4b086bd5b5
added target name to test name and labels
2017-05-18 16:00:18 +03:00
dvirtz
aac594aae3
add option to print debug messages
2017-05-18 15:53:35 +03:00
dvirtz
a49fa0edbe
use absolute path to test files - accroding to CMake docs EXISTS behavior is well-defined only for full paths.
2017-05-18 15:51:44 +03:00
Martin Hořeňovský
d271683c14
Added release process notes/checklist/explanation
2017-05-16 21:33:58 +02:00
Martin Hořeňovský
0bb8e1247e
Merge branch 'master' of https://github.com/awglyde/Catch
2017-05-16 16:09:51 +02:00
Martin Hořeňovský
32d97caf42
Fixed missing ` in tag documentation
2017-05-16 15:45:44 +02:00
Martin Hořeňovský
bc93b29789
Expanded tag documentation
...
It now mentions that most characters are valid as part of tag and other
details.
Closes #909
2017-05-16 15:28:53 +02:00
Martin Hořeňovský
df5cf2d323
Minor fixup in updateVcpkgPackage.py
2017-05-16 14:34:55 +02:00
Martin Hořeňovský
b62c0256b2
Merge branch 'master' of https://github.com/philsquared/Catch
2017-05-16 14:34:27 +02:00
Martin Hořeňovský
1ea84cb734
Expanded logging documentation
...
Closes #884
2017-05-16 14:34:20 +02:00
Martin Hořeňovský
2a5d3736e8
Merge pull request #908 from pJunger/patch-1
...
Typo: Added namespace in method testCaseEnded
2017-05-16 14:05:31 +02:00
Martin Hořeňovský
3dcc923351
v1.9.4
2017-05-16 13:59:29 +02:00
Martin Hořeňovský
589c40077b
Typo fix
...
Somehow I made that in 5ffc8a84cd
without noticing
2017-05-16 13:51:17 +02:00
Patrick Junger
d4e0b1d093
Added namespace in method testCaseEnded
...
Did not compile as is
2017-05-14 14:11:47 +02:00
Antonio Di Monaco
b8443e67da
Added Win32 UNICODE wmain support ( #903 )
...
* Added wmain support
* Added appveyor.yml wmain configuration
* Added wmain configuration flag to CMake
2017-05-11 13:00:03 +02:00
Martin Hořeňovský
5604ec7266
Updated toString documentation
...
It will need another update when Catch 2 goes live.
Closes #741
2017-05-03 21:09:27 +02:00
Benjamin R. Jack
6f012f2d1d
Added warning if source file cannot be found
...
If source files are defined using relative paths, CMake will compile the tests, but this script will (sometimes) fail to find and parse the tests from the source files. I have added an explicit warning when ParseAndAddCatchTests fails to find a source file.
2017-05-01 19:55:17 +02:00
Martin Hořeňovský
98e61c31df
Approval tests now see different line endings as ok
...
This is mostly to deal with WSL, where git will checkout file with CRLF,
but code that uses formatted output will be writing LFs.
2017-04-29 18:06:36 +02:00
Martin Hořeňovský
e641485132
Updated approval tests
2017-04-29 17:54:10 +02:00
Martin Hořeňovský
a3ceb8f007
Approval tests now can deal with different expansions of errno
2017-04-29 17:52:12 +02:00
Martin Hořeňovský
b819432271
Don't clear out all messages upon printing an assertion.
...
Previously, this would not print out any messages for the last CHECK
```cpp
TEST_CASE("Foo") {
INFO("Test case start");
for (int i = 0; i < 2; ++i) {
INFO("The number is " << i);
CHECK(i == 0);
}
CHECK(false);
}
```
now it does.
2017-04-29 17:50:03 +02:00
Martin Hořeňovský
9ceae8f51f
CMake binaries are now conditionally enabled
...
Defining NO_SELFTEST=1 when cmake configuration is being done now turns
off SelfTest and Benchmark executables. This is for projects that
consume Catch using ExternalProject_Add and don't want to build our
selftest binaries for their unit test suite.
Closes #897
2017-04-28 20:27:10 +02:00
Martin Hořeňovský
5ffc8a84cd
Fix order of arguments in CATCH_FAIL and nonvariadic INTERNAL_CATCH_MSG
...
Fixes #896
2017-04-28 18:30:04 +02:00
JayAndCatchFire
6e0fa4be68
Update opensource-users.md
...
Fixed broken link to LICENSE
2017-04-27 10:29:58 +02:00
Phil Nash
a0ada2e935
v1.9.3
2017-04-25 14:23:06 +00:00
Phil Nash
e4694f58da
Removed errant uses of uint64_t
...
fixes #894
2017-04-25 14:15:59 +00:00
Martin Hořeňovský
fc7f0a02b8
v1.9.2
2017-04-25 11:08:02 +02:00
Phil Nash
211b330346
Don’t unconditionally #include <stdint.h> (as earlier MSVC don’t have it)
2017-04-25 08:43:14 +01:00
Phil Nash
d36fe214a6
Further tweaked alignment hack for Option
2017-04-25 08:38:25 +01:00