Commit Graph

1392 Commits

Author SHA1 Message Date
Martin Hořeňovský
113b4ddc36 Revert "Minor typo fix"
Didn't notice the pull request was made against develop branch and not master.

This reverts commit ba5d515195.
2017-01-07 22:18:22 +01:00
Antoine Wendlinger
ba5d515195 Minor typo fix 2017-01-07 21:36:28 +01:00
Phil Nash
2a7d33a38c First cut of new, non-owning, StringRef class, with no dependencies in header 2016-06-10 19:37:27 +01:00
Phil Nash
3be950958c Suppress more warnings in test code 2016-06-10 19:33:23 +01:00
Phil Nash
3984473e26 Remove unused constructor in test code to eliminate warning 2016-06-10 19:33:07 +01:00
Phil Nash
36cd85acbe Suppress warnings about double promotions 2016-06-10 19:32:33 +01:00
Phil Nash
afc0b31b10 Regenerated single-header 2016-06-07 22:59:54 +01:00
Phil Nash
95efc50731 dev build 3 2016-06-07 07:42:59 +01:00
Phil Nash
f19b2dc661 Rebased approvals following several merges from master 2016-06-07 07:42:10 +01:00
Phil Nash
07f04fc95d "test" expression using !! instead of static_cast to bool.
This addresses #657 while (hopefully) maintaining fix for #574
2016-06-07 07:40:12 +01:00
Phil Nash
b4f4cf370d Using Clara 0.0.2.4 - fixes issue with spaces in quoted arguments 2016-06-07 07:39:51 +01:00
Daniel J. Hofmann
f61d30d620 Pins LLVM 3.8 (stable) instead of tracking the nightly repository 2016-06-07 07:39:44 +01:00
Phil Nash
5c99c53a34 Removed use of dynamic_cast from test_case_tracker.
(Thanks to #631 and #648)
2016-06-07 07:39:34 +01:00
Phil Nash
5d84c964c9 Removed use of dynamic_cast for MultipleReporters
(Thanks to #630, #636 and #648)
2016-06-07 07:39:27 +01:00
Phil Nash
a96974e65f Updated embedded Clara to 0.0.2.3
- has all new, more robust, token parsing.
- eliminates issue with unreachable code
- allows use of forward slashes to introduce short args on Windows
2016-06-07 07:39:12 +01:00
Rafael Eyng
7ea59102f1 Update tutorial.md
Closes #633
2016-06-07 07:39:00 +01:00
Robert Dailey
c4c8843cae [#608] Don't use exit() on duplicate test descriptions
Instead of `exit(1)`, it now throws `std::runtime_error` with the details
of the failure. This exception is handled in `run()` at a higher level where
the log is printed to cerr and the test gracefully exits.
2016-06-07 07:38:50 +01:00
Ian Copland
675bc5450e Added missing CATCH_OVERRIDE to CumulativeReporterBase::assertionEnded(). This fixes a warning when building in Xcode 7.2+ with default warning settings. 2016-06-07 07:38:30 +01:00
Phil Nash
c65b00f73e Fixed !shouldfail 2016-06-07 07:37:51 +01:00
David Grayson
65b768aad7 Fix CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS: GCC needs to be capitalized.
Fixes issue #600.
2016-06-07 07:31:33 +01:00
Phil Nash
45bf93aa8b Suppress parentheses warnings on clang and gcc
- should address #593, #528, #521, #496 (and possibly others)
2016-06-07 07:30:11 +01:00
Phil Nash
109758131a Removed deprecated --force-colour option 2016-06-07 07:16:35 +01:00
Phil Nash
8a102bd13c Added --use-colour option to give finer control over colourisation.
--force-colour is still present but deprecated (will remove soon)
2016-06-06 20:15:31 +01:00
Trevor Hickey
a4a2c15e0c removes link to missing readme file 2016-06-06 20:13:14 +01:00
Sean Middleditch
3f226c1999 Support explicit operator bool
Fix for issue 596
2016-06-06 20:13:09 +01:00
Phil Nash
e134da2e10 Use Clara v0.0.1.1 2016-06-06 20:12:36 +01:00
Phil Nash
7f9fbd58c8 Fix as suggested in #574
Cast expression to bool to prevent custom && from defeating short-circuiting
2016-06-06 20:12:21 +01:00
Phil Nash
5c60a06ffe Removed reference to pre 1.0 release from README 2016-06-06 20:12:00 +01:00
Phil Nash
51cc268609 Fix EndsWith Matcher (and refactored EndsWith and StartsWith in terms of endsWith and startsWith) (see Issue #573) 2016-06-06 20:11:40 +01:00
Phil Nash
d1b394d957 Fixed CATCH_REGISTER_TEST_CASE too 2016-06-06 20:10:58 +01:00
Phil Nash
642598b11e Fixed REGISTER_TEST_CASE for VS2013 (hopefully)
- see #549
2016-06-06 20:10:52 +01:00
Phil Nash
7e86613377 Fixed catch_with_main.hpp (no longer references deleted catch_runner.hpp) 2016-06-06 20:10:42 +01:00
Phil Nash
b54813e84e First cut of ThreadContext (not plumbed in anywhere yet) 2016-06-06 20:06:21 +01:00
Phil Nash
3d6bef2a82 Keep Xcode 7.1 happy 2016-06-06 20:06:21 +01:00
Phil Nash
c2b8919b4d Removed LegacyReporter support 2016-06-06 20:06:21 +01:00
Phil Nash
79e4327329 Fixed a couple of warning regressions 2016-06-06 20:06:21 +01:00
Phil Nash
ebb4677089 Funnel most calls to getCurrentRunContext() through C_A_T_C_H_Context() 2016-06-06 20:06:21 +01:00
Phil Nash
f4ba8aaf19 dev build 2 2015-12-15 07:54:49 +00:00
Phil Nash
25899ea20e Use __COUNTER__ when generating unique names instead of __LINE__, if available.
Based on PR #351
2015-12-15 07:51:42 +00:00
Phil Nash
36cee598cf Approvals for Matcher change (added comma) 2015-12-10 18:16:30 +00:00
Simon Warta
506b915f7f Add missing comma when in captured expression for matchers
Such that
CHECK_THAT( hex_encode(outbuf) Equals("B5D4045C") )
becomes
CHECK_THAT( hex_encode(outbuf), Equals("B5D4045C") )
2015-12-10 08:13:08 +00:00
Phil Nash
5cab3cc1b8 Fixed non-variadic version of REGISTER_TEST_CASE 2015-12-10 08:12:58 +00:00
Phil Nash
d2642325ae main takes args by non-const char*
- see #548
2015-12-09 18:08:24 +00:00
Phil Nash
8fa41d96c7 Initialise m_currentSortOrder
- as reported in #545
2015-12-09 18:08:10 +00:00
Phil Nash
693355cc75 Regenerated single header 2015-11-23 10:29:29 +00:00
Phil Nash
5e0db60443 Use CATCH_AUTO_PTR in DebugOutStream 2015-11-23 10:28:13 +00:00
Phil Nash
ce547c1799 Moved branch on to v2 2015-11-23 10:09:09 +00:00
Phil Nash
28aece6a7a Added noexcept to CustomStdException destructor 2015-11-23 10:07:29 +00:00
Phil Nash
bd8688cded Added support for manually registering test functions.
As discussed in #421
2015-11-20 16:54:07 +00:00
Phil Nash
c70170e904 Reduce number of places getCurrentRunContext() is called 2015-11-20 08:31:17 +00:00