cppunit Questions
8
My organization is using CppUnit and I am trying to run the same test using different parameters. Running a loop inside the test is not a good option as any failure will abort the test. I have look...
Weil asked 14/11, 2008 at 13:37
6
Solved
I am trying to build libtorrent on shared hosting. So built CPPUnit(1.12.1) with --prefix=$HOME. After that my $HOME/lib and $HOME/include contains CPPUnit libraries and headers.
The I exported L...
8
Solved
I've come across cppunit but it didn't look super-easy to use (maybe I didn't look hard, maybe because C++ doesn't work like Java/C#). Are there widely used, simple alternatives?
In fact, is...
Pitta asked 10/1, 2010 at 21:28
2
Solved
I've run into an issue while attempting to start using Google Mocks - for some reason it can't tell the call I'm specifying in the EXPECT_CALL macro, even though the types are consistent. I want to...
Illuminometer asked 13/2, 2013 at 0:56
3
Solved
I am using CppUnit as a unit test framework. Is it possible to select a subset of testcases to execute at runtime?
Is there a filtering option provided within CppUnit to accomodate this?
Countryside asked 6/5, 2010 at 19:2
3
Can you compare popular unit test frameworks for C++ with QTest of Qt?
(cppunit, boost test, google test etc..)
What are the advantages disadvantages?
Thank you.
note: GUI test is not very impor...
Cappella asked 2/2, 2011 at 20:43
1
Solved
I joined a project where CPPUnit is used for unit testing and will be adding some tests that probably share setup and teardown code. In researching this more I came across
CPPUNIT_TEST_SUITE_PROP...
Earlearla asked 1/2, 2017 at 17:35
3
Solved
I'm working with CPPUNIT 1.12.1.
It has those macro defined:
#define CPPUNIT_TEST_SUITE_ADD_TEST( test ) \
context.addTest( test )
#define CPPUNIT_TEST( testMethod ) \
CPPUNIT_TEST_SUITE_ADD_T...
1
Solved
I'm trying to compile a software from source codes. In one compiling stage, I need to navigate the directory which holds CppUnit Libraries (e.g. /home/user/lib) and CppUnit Includes (e.g. /home/use...
2
Solved
I am trying to install CppUnit on Windows.
I have downloaded it from here, decompressed it, and noticed that all files have ,v in their name, and no extension.
The instructions for installation...
Apfel asked 18/10, 2012 at 0:1
2
Solved
I've got a class that inherits from another class like so:
class TestClass : public BaseClass
I am wondering if it is possible to make this a test class using the TEST_CLASS macro or some other ...
Reprography asked 26/6, 2014 at 7:6
1
I'm trying to debug the CPPUnitTests and the breakpoints are set in the files that are a part of the to-be-tested DLL (C++ unmanaged dll).
I attached the CPPunit tester process to the visual studi...
Muttonhead asked 6/8, 2014 at 5:57
4
Solved
I think I'm missing something really stupid here.
I have libcppunit installed: (I'm using Ubuntu 12.04)
$ apt-cache policy libcppunit-dev
libcppunit-dev:
Installed: 1.12.1-4
Candidate: 1.12.1...
Dogged asked 19/4, 2012 at 3:0
1
I am trying to compile a test program using CppUnit. The problem is, with this sample code:
//[...]
class EntityComponentTest : public CppUnit::TestFixture
{
CPPUNIT_TEST_SUITE( EntityComponentT...
3
Solved
My project contains C files. And in some files I have functions defined as static.
I'm using CppUnit in my unit tests and I want to test these static functions. I know that calling a function from...
Deteriorate asked 16/4, 2013 at 16:16
3
I'm setting up a bunch of unit tests using CppUnit but am having the problem that none of the tests are being run. The project is divided up into several small libraries and I planned on dividing t...
Lang asked 19/6, 2009 at 3:14
2
Solved
How do I change the output of cppunit from dots, indicating how many tests are done to the actual names of the tests, or maybe just at least the string which was given to the test-caller, as counti...
3
Solved
I am trying to build CppUnit (first line in ReadMe says version 1.13) with Visual Studio 2010. Following the instructions (found on web forums, couldn't find much in CppUnit documentation); I canno...
Citify asked 28/3, 2011 at 17:41
3
In the process of setting our C++ unit testing framework for the next years we shortlisted GoogleTest and CppUnit. I have some experience with both and my heavy preference is GoogleTest. Anyways to...
Bagley asked 27/10, 2011 at 20:55
9
Solved
I know there are already a few questions regarding recommendations for C++ unit test frameworks, but all the answers did not help as they just recommend one of the frameworks but do not pr...
Purveyor asked 28/10, 2008 at 11:13
1
Solved
I seek a perl module to convert CppUnit output to TAP format. I want to use the prove command afterwards to run and check the tests.
7
Solved
Is there any good way to unit test destructors? Like say I have a class like this (contrived) example:
class X
{
private:
int *x;
public:
X()
{
x = new int;
}
~X()
{
delete x;
}
int *...
Talkie asked 23/11, 2008 at 0:28
8
Is anyone aware of extensions to CppUnit that can be used to make assertions on a test by test basis concerning memory leaks.
i.e. CPPUNIT_ASSERT_NO_LEAKS()?
Essentially, I want to be able to fa...
Snowshed asked 16/6, 2009 at 13:20
2
Solved
I want to start to do some unit testing however I am really confused about how to setup CPPUnit. I have looked at various tutorials and guides online to find out what to do but there are so many va...
Peres asked 11/11, 2011 at 12:41
2
Solved
One thing I like about Visual Studio Unit Testing Framework is that all the unit testing is done from withing the IDE, from class definition to running the test having a graphical green/red bar giv...
Einhorn asked 15/3, 2011 at 19:33
1 Next >
© 2022 - 2024 — McMap. All rights reserved.