cxxtest

Can cxxtest suite be dynamically extended at run-time?

好久不见. 提交于 2019-12-13 02:06:12
问题 I wish to dynamically extend my CxxTest Suite with additional test items, but am finding that all the testing scenerios must be available (hard-coded) at compile time. My scenario is that I've got a fairly bulky C++ class that has 20+ methods to be tested. This class needs to be tested for 40+ DIFFERENT data sets. These data sets are obtained via the class constructor, controlled via parameters. My primary objective is to avoid re-writing the same 20 test cases for the different data sets. I

CxxTest compiling, missing main

邮差的信 提交于 2019-12-13 01:34:12
问题 I am using CxxTest for unit testing. I followed the docs. First command I executed was: cxxtestgen --error-printer -o runner.cpp MyTestSuite1.h Output of the command is runner.cpp file. According to the documentation, next command should be: g++ -o runner -I(location_of_the_cxxTest_headers) runner.cpp but I am unable to execute it, I am receiving the error about missing entry point. In other words, runner.cpp is missing main. Same thing happens with the test files included with CxxTest. I am

MinGW / CxxTest bizarre errors

独自空忆成欢 提交于 2019-11-27 01:44:45
I hope you can help me. I have written a small project using CxxTest on my main dev machine. Everything works great on this machine, no problems. However, I tried setting up this project on my brand new laptop and just can't get it to work! I suspect something is messed up with my MinGW installation rather than CxxTest, but it's really hard to know - and the errors originate from CxxTest files. This is the folder structure of the project: lib/ cxxtest-4.3/ src/ TestUtils.h test.cpp test/ MyTestSuite.h libstdc++-6.dll On the command line I run: cd test ..\lib\cxxtest-4.3\bin\cxxtestgen --error

MinGW / CxxTest bizarre errors

纵然是瞬间 提交于 2019-11-26 08:25:02
问题 I hope you can help me. I have written a small project using CxxTest on my main dev machine. Everything works great on this machine, no problems. However, I tried setting up this project on my brand new laptop and just can\'t get it to work! I suspect something is messed up with my MinGW installation rather than CxxTest, but it\'s really hard to know - and the errors originate from CxxTest files. This is the folder structure of the project: lib/ cxxtest-4.3/ src/ TestUtils.h test.cpp test/