From: Piotr B. <dms...@gm...> - 2013-01-09 23:21:46
|
Following the suggestion i will try to describe some relevant features of the CxxTest framework: 1. Minimal amount of work needed to add new tests Creating new test cases with CxxTest turns out pretty easy and requires minimal programming effort. No manual registration of test cases or use of some ugly macros is needed. CxxTest gets around that by parsing test cases and generating a C++ test runner. The build process looks like the following: 1. Tests are defined in C++ header files 2. The "cxxtestgen" command line tool processes header files to generate files for the test runner. 3. Finally, the test runner can be compiled and executed to run all test suites. 3. Supports fixtures. Great support. A wide range of functions available: - setup/teardown for individual tests - setup/teardown for the whole test suite - world(global) fixtures 4. Handles exceptions and crashes well Very good. Again, a rich set of functions is available to check if certain exceptions were thrown. No support for dealing with C++ signals found yet. I have not found on this topic in the documentation or during google search. Maybe we'll find more info in CxxTest forum. I have already asked for some hint - https://groups.google.com/forum/?hl=en#!forum/cxxtest-forum 5. Supports different outputs Good support. In addition to the standard output, the test results can be stored in XML format. Another plus - CxxTest supports testing with mock objects which i will study in next step. Last but not least i have attached an example test suite to the Ticket. Piotr 2013/1/7 Ulf Lorenz <ul...@wa...> > On Sun, 6 Jan 2013 20:37:51 +0100 > Piotr Bienkiewicz <dms...@gm...> wrote: > > > After some search I've found a couple of valuable frameworks. > > An interesting comparison can be found here: > > http://gamesfromwithin.com/exploring-the-c-unit-testing-framework-jungle > . > > Nice, and pretty much what I was thinking of, though a little outdated, > and some things like his portability concerns are not relevant for us. > After having looked around for the tensor stuff, I would suggest that > you rank the libraries (and maybe more if you find them, e.g., > googletest) using the criteria 1,3,4,(5), throw out strange projects > (bad documentation, arcane installation, inactive projects), and try > out the best, say, 4 candidates. To keep the amount of work in a > reasonable frame. > > > This mail also reminds me of a ping that I wanted to write: If you get a > task, could you always acknowledge it in some way (assigning the task > to yourself, mailing a short ok or something), just to give me the > feeling something is happening. :) > > > Ulf > > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. SALE $99.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122412 > _______________________________________________ > Wavepacket-ng-devel mailing list > Wav...@li... > https://lists.sourceforge.net/lists/listinfo/wavepacket-ng-devel > |