Commit Graph

131 Commits

Author SHA1 Message Date
Phil Nash
58e9a8bafd Some clean-up 2011-02-08 08:42:05 +00:00
Phil Nash
9d1259273f Added some headers to fix build on some gcc versions 2011-02-04 09:30:36 +00:00
Phil Nash
cf7b6881c9 Some layout reformatting. I think everything is in my preferred style now 2011-02-03 20:00:46 +00:00
Phil Nash
d16ce74dbb Fixed compiler error for gcc on Linux (reported by Tryneus - thanks) 2011-02-02 19:45:59 +00:00
Phil Nash
d1ee964f5d Fixed more gcc warnings 2011-01-31 20:15:40 +00:00
Phil Nash
db378d8939 Fixed most pedantic warnings 2011-01-31 10:10:20 +00:00
Phil Nash
44488f6331 Some formating clean-up 2011-01-28 18:56:26 +00:00
Phil Nash
bf4a4312b4 Extracted generator impl code out of Hub 2011-01-28 10:18:23 +00:00
Phil Nash
fe67902de1 Removed some cruft 2011-01-28 10:10:05 +00:00
Phil Nash
5cad9d5a86 Multiple generators working and factored out a bit better 2011-01-27 22:29:36 +00:00
Phil Nash
c2b96d7ddb First cut of generators 2011-01-26 23:23:33 +00:00
Phil Nash
455c2998a0 Only report test case once for all sections within it 2011-01-19 19:30:01 +00:00
Phil Nash
6a6b346731 Removed OutputDebugString support until I can test it on a Windows machine 2011-01-19 19:20:56 +00:00
Phil Nash
5108821199 Removed OutputDebugString support until I can test it on a Windows machine 2011-01-19 19:19:06 +00:00
Phil Nash
ae307b000a Started adding support for isolated sections 2011-01-19 08:52:25 +00:00
Phil Nash
2b05dfaf05 Incremental naming for annonymous test cases 2011-01-18 20:09:21 +00:00
Phil Nash
bfc1ee6c62 Cleaned up config class a bit 2011-01-18 19:49:00 +00:00
Phil Nash
2885339287 Allow output stream to be specified on the command line 2011-01-18 09:20:06 +00:00
Phil Nash
6c010e25d9 A single embedded runner instance can now be used for multiple nested runs, with results reset between each. Meta test runner looking very clean now. 2011-01-14 16:21:11 +00:00
Phil Nash
684baf1053 Don't run tests starting with ./ by default. Changed all low-level self tests to be in ./ 2011-01-14 08:47:43 +00:00
Phil Nash
f36d777343 Replaced dodgy self-test code with slightly less dodgy self test meta test cases 2011-01-14 08:38:46 +00:00
Phil Nash
4b162c1341 Keep stack of runners and pass success/ fail count to EndTestCase 2011-01-14 08:26:58 +00:00
Phil Nash
b81e0b9e9c Some code clean-up 2011-01-11 19:48:48 +00:00
Phil Nash
1172d26705 Added some specialisations for toString 2011-01-11 09:21:23 +00:00
Phil Nash
263c046b84 Refactored more into Hub 2011-01-11 09:13:31 +00:00
Phil Nash
fd58d48665 Some more refactoring/ cleaning of test case files 2011-01-07 19:57:32 +00:00
Phil Nash
95627c40cf split test registry code out 2011-01-07 10:22:24 +00:00
Phil Nash
430733c918 Moved test case registry into hub 2011-01-07 10:01:40 +00:00
Phil Nash
a65f210cb2 Changed some std::string args to char* to improve compile time 2011-01-07 09:38:32 +00:00
Phil Nash
896a04f5e8 More project refactoring 2011-01-05 21:16:54 +00:00
Phil Nash
e0d530c22c Project refactoring 2011-01-05 21:14:29 +00:00
Phil Nash
b87a16d11a Fixed TestMain after recent refactorings 2011-01-05 21:07:20 +00:00
Phil Nash
4220fb6267 Added missing #includes 2011-01-05 21:04:13 +00:00
Phil Nash
b47139d245 tweaked list enum 2011-01-01 00:37:49 +00:00
Phil Nash
e24ad7db6e Renamed runnerconfig file -> config 2011-01-01 00:29:58 +00:00
Phil Nash
5a262b7d2d Project clean-up 2011-01-01 00:26:20 +00:00
Phil Nash
949d9ead04 Renamed RunnerConfig to just Config (now its the only one) 2011-01-01 00:20:14 +00:00
Phil Nash
50712a34c3 Folded ReporterConfig into RunnerConfig 2011-01-01 00:18:35 +00:00
Phil Nash
aca80a171b moved impl of hub out into hub_impl - only #included from runner. 2010-12-31 22:54:35 +00:00
Phil Nash
18e32b9b9f Only Hub #includes report_registry. Seperated reporter registrars from registry. 2010-12-31 22:46:51 +00:00
Phil Nash
764229ac4e ReporterRegistry now fully aggregated by Hub 2010-12-31 22:21:36 +00:00
Phil Nash
e846e0744d Refactored reporter related code into interface based design 2010-12-31 22:07:47 +00:00
Phil Nash
6ea8f298a4 First step to refactoring ResultsCapture into pure calls onto IResultListener interface 2010-12-31 20:49:58 +00:00
Phil Nash
245be004fe Tweak to reporter registrar to make sure generated name is unique 2010-12-31 16:12:48 +00:00
Phil Nash
27fdf01b76 Added help option 2010-12-30 18:51:02 +00:00
Phil Nash
c60156ad11 more commane line tidy up 2010-12-30 18:28:56 +00:00
Phil Nash
dc53c3a93f Tidied command line a little 2010-12-30 18:24:22 +00:00
Phil Nash
763d5c368a Fixed warning about copy ctor 2010-12-29 23:18:16 +00:00
Phil Nash
4b8e3fca32 Fixed some more warnings 2010-12-29 23:13:22 +00:00
Phil Nash
9a79ee7958 Cleaned up some more warnings 2010-12-28 17:21:29 +00:00
Michael Mortensen
9dfb8157a0 Allow tests including catch to compile with g++ flags -Wall and -Werror. 2010-12-28 15:42:46 +01:00
Michael Mortensen
4aa36f6071 Changed initialization order to avoid some warnings when compiling with g++. 2010-12-28 15:17:27 +01:00
Phil Nash
1b96cec8f2 Fixed bug with listing test cases 2010-12-28 13:31:22 +00:00
Phil Nash
034c8b6248 INFO()s are only cleared by failures or end of test case 2010-12-27 22:18:33 +00:00
Phil Nash
89c464709e INFO() now works correctly 2010-12-27 22:05:13 +00:00
Phil Nash
a36b8d0779 Added facility to write self-registering test cases as methods 2010-12-27 20:51:06 +00:00
Phil Nash
53da26eef1 Added ability to break into debugger on Windows and Mac 2010-12-27 20:49:19 +00:00
Phil Nash
0025668584 Added streaming to message macros and added scoped info 2010-12-27 11:09:34 +00:00
Phil Nash
de77ff3b29 Some tidy up 2010-12-10 20:06:54 +00:00
Phil Nash
68eec929e4 Refactored xml reporter in terms of xmlwriter and filled out new events 2010-12-10 20:01:40 +00:00
Phil Nash
a35e4b5670 Some clean-up and a little more JUnit implementation 2010-12-10 08:18:06 +00:00
Phil Nash
0ab4432025 First draft of Junit reporter 2010-12-10 08:01:42 +00:00
Phil Nash
ce319b79e5 stdout/ stderr capturing 2010-11-30 06:48:21 +00:00
Phil Nash
9a703f73d4 Tidy up after merge mess 2010-11-29 22:52:27 +00:00
Phil Nash
fa9f970890 fixed merge 2010-11-29 22:33:48 +00:00
Phil Nash
ceab2a63bd merge 2010-11-29 19:48:37 +00:00
Phil Nash
e6b2b0e656 Implemented more reporter methods and started to fill out Section impl 2010-11-29 19:40:44 +00:00
Phil Nash
388e9ffde6 Some work on sections 2010-11-19 08:30:45 +00:00
Phil Nash
7d1ce5fade toString() now works with non-specialised non-streamable types 2010-11-16 19:30:41 +00:00
Phil Nash
d52f61cc67 first cut of ObjC bindings 2010-11-14 22:47:30 +00:00
Phil Nash
3d6fa68970 Moved catch_runnerconfig.hpp into internal 2010-11-12 19:55:53 +00:00
Phil Nash
d8aa843c7d Added Visual Studio project and fixed up some warnings showing in VS 2010-11-12 19:32:13 +00:00
Phil Nash
7e8cfa714f more portability fixes 2010-11-12 08:12:01 +00:00
Phil Nash
9e4708371e some portability fixes (thanks to Sam Saariste) 2010-11-11 20:56:38 +00:00
Phil Nash
7d71e9b431 #include and newline fixes from Björn Fahller 2010-11-11 20:42:16 +00:00
Phil Nash
92f2d32f74 Fixed leak 2010-11-11 20:37:46 +00:00
Phil Nash
48a70220a3 Detect and warn about overly complex expressions 2010-11-11 07:21:57 +00:00
Phil Nash
3d0fed768a Fixed a == 1 || b == 2 case 2010-11-10 19:18:46 +00:00
Phil Nash
e3bcf68f7a Fixed temporary encapsulation violation 2010-11-10 08:43:48 +00:00
Phil Nash
3455e55538 Change some names to protect the ... reserved 2010-11-10 07:42:15 +00:00
Phil Nash
d80260001b First commit for GitHub 2010-11-09 23:24:00 +00:00