cppunit-devel Mailing List for CppUnit - C++ port of JUnit (Page 2)
Brought to you by:
blep
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
(21) |
May
(96) |
Jun
(109) |
Jul
(42) |
Aug
(6) |
Sep
(106) |
Oct
(60) |
Nov
(20) |
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(7) |
Feb
(11) |
Mar
(49) |
Apr
(124) |
May
(30) |
Jun
(37) |
Jul
(53) |
Aug
(33) |
Sep
(21) |
Oct
(22) |
Nov
(19) |
Dec
(15) |
2003 |
Jan
(34) |
Feb
(25) |
Mar
(11) |
Apr
(12) |
May
(16) |
Jun
(24) |
Jul
(23) |
Aug
(23) |
Sep
(42) |
Oct
(7) |
Nov
(32) |
Dec
(33) |
2004 |
Jan
(41) |
Feb
(41) |
Mar
(24) |
Apr
(25) |
May
(18) |
Jun
(13) |
Jul
(11) |
Aug
(15) |
Sep
(22) |
Oct
(10) |
Nov
(15) |
Dec
(9) |
2005 |
Jan
(4) |
Feb
(15) |
Mar
(11) |
Apr
(16) |
May
(29) |
Jun
(17) |
Jul
(27) |
Aug
(12) |
Sep
(9) |
Oct
(10) |
Nov
(5) |
Dec
(6) |
2006 |
Jan
(2) |
Feb
(6) |
Mar
(7) |
Apr
(2) |
May
(1) |
Jun
(5) |
Jul
(8) |
Aug
(6) |
Sep
(10) |
Oct
(11) |
Nov
(15) |
Dec
(2) |
2007 |
Jan
(12) |
Feb
(22) |
Mar
(10) |
Apr
(7) |
May
(1) |
Jun
(8) |
Jul
(4) |
Aug
(1) |
Sep
(2) |
Oct
(1) |
Nov
|
Dec
|
2008 |
Jan
|
Feb
(7) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(7) |
Dec
|
2010 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: CppUnit d. m. l. <cpp...@li...> - 2007-07-12 19:18:10
|
I'm passing a style sheet to XmlOutputter::setStyleSheet, but it has no effect on the output. There are no runtime errors or complaints. Is there something else I need to do to activate it? |
From: CppUnit d. m. l. <cpp...@li...> - 2007-07-12 09:13:18
|
Hello, First sorry if my English is bad, i will try to explain my request. I want to use TimeOutTestCaller<http://www.hikerproject.org/doc/html/class_time_out_test_caller.html>class in my test frame-work to create TestCase's that run for 10 second for example. I found a example of usage here : http://cppunit.sourceforge.net/doc/lastest/group___writing_test_fixture.html#ga5 I have two questions about this class: 1- I have many TestCase that i create with different parameters, i want to use TimeOutTestCaller with this TestCases, is-it possible? 2- Where can I found TimeOutTestCaller on cppunit? because in the doxygen of CppUnit-1.12-0 I don't found documentation about this class . It seems that this class doesn't exist in the version of cppunit i have installed on my computer. Thank's for the replier. Otmane |
From: CppUnit d. m. l. <cpp...@li...> - 2007-06-20 15:33:03
|
Hello All, I've built cppunit on Max OS X 10.4.9 and built and use the static version. However, I want to use the dynamic libraries with the DLLPluginTester. I have followed the build instructions for building a universal version from the home page and built everything. However, for the samples, I get a message on the Terminal that there is nothing to be done for make all or make install for the plugin samples. >> Making all in ClockerPlugIn >> make[2]: Nothing to be done for `all'. >> Making all in DumperPlugIn >> make[2]: Nothing to be done for `all'. How do you build the plugin samples? Any help would be appreciated. BTW: I have build and run the plugin samples with the plugin tester on the PC using Dev Studio 2005 and everything works fine there. Thanks, -Mike |
From: CppUnit d. m. l. <cpp...@li...> - 2007-06-19 12:58:09
|
hi, All the object files are archived using \"ar\"(linux command),and it is used to create a binary. On executing the binary, suites are not registered at initialization time.ie without calling CPPUNIT_TEST_SUITE_REGISTRATION the program control enters into the main. So my testcases are not executed. But without archiving the object files,when they are used directly ,the suites are registered and my test cases are executed. operating system -fedora core 2 g++ version-3.3.3. Thanks, alamelu.s |
From: CppUnit d. m. l. <cpp...@li...> - 2007-06-19 09:36:55
|
Hi all, This is Sandeep. I have developed some multi threaded application in which i am using CreateThread system call. I need to test this application with CppUnit but i don't know how to make a test for that System call. Now Suppose if i replace this system call implementation with my own written dummy implementation then it might clash with system dlls. Suppose if i don't replace this system call implementation with my own then it might be the case that every time it succeeds, then i can't be able to test my code for false cases also... Can any body helop me out. Thanks and Regards Sandeep |
From: CppUnit d. m. l. <cpp...@li...> - 2007-06-06 21:27:23
|
Hello Coverity, I'm smr99 at sourceforge, one of the developers of CppUnit (http://sourceforge.net/projects/cppunit). I'd like to have you add CppUnit to your bug scanner (http://scan.coverity.com/index.html). Thanks, -Steve |
From: CppUnit d. m. l. <cpp...@li...> - 2007-06-06 09:42:39
|
Hello Ya i got what you wanna say. But i have another problem.... Suppose i want to create test cases for system calls. for e.g. a call to createthread() or to createevent. how to provide test cases for those calls Suppose i replace those system calls with dummy functions. that's fine but = i think it will clash with system dlls. then how do i tackle this problem. Thanks. On 6/4/07, CppUnit development mailing list < cpp...@li...> wrote: > > Hello Sandeep, > > Am Montag, 4. Juni 2007 schrieb CppUnit development mailing list: > > Can Any body tell me how to test any module that is itself dependent on > > other modules. > > For example. > > i have class A having module named aProc(). > > And suppose aProc() makes a call to any module declared in other class, > > lets say B. > [...] > > So here in Class A aProc() is dependent on b.bProc()'s output. > > So my question is that do i need to make a TestSuits for class B also > along > > with class A. > > Remember i want to unit test only Class A and not B. > > What is the reason that you do not want to test class B in your scenario? > Usually, you should do so also. > > But I assume that you are not able to test B for some reason (e.g. due to > remote implementation or something else). In this case it is common sense > to > use a stub or a mock object of class B. > > In C++ you can simply exchange the B.cpp implementation file, for example= , > and > provide your own implementation. This could be rather empty and just > enough > code that A is working (stub), or it could contain additional test code > that > tests for, e.g., known input/output values or a counter of the amount of > calls to B::bProc(). The latter would be a mock object. > > I hope I got the point and this was help for you. :-) > > Kind regards, > Marcel > > > -- > Marcel Winandy > http://www.prosec.rub.de/staff/winandy.html > Horst G=F6rtz Institute for IT Security, Ruhr-University Bochum > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Cppunit-devel mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppunit-devel > |
From: CppUnit d. m. l. <cpp...@li...> - 2007-06-04 09:08:51
|
Hello Sandeep, Am Montag, 4. Juni 2007 schrieb CppUnit development mailing list: > Can Any body tell me how to test any module that is itself dependent on > other modules. > For example. > i have class A having module named aProc(). > And suppose aProc() makes a call to any module declared in other class, > lets say B. [...] > So here in Class A aProc() is dependent on b.bProc()'s output. > So my question is that do i need to make a TestSuits for class B also alo= ng > with class A. > Remember i want to unit test only Class A and not B. What is the reason that you do not want to test class B in your scenario?=20 Usually, you should do so also. But I assume that you are not able to test B for some reason (e.g. due to=20 remote implementation or something else). In this case it is common sense t= o=20 use a stub or a mock object of class B. In C++ you can simply exchange the B.cpp implementation file, for example, = and=20 provide your own implementation. This could be rather empty and just enough= =20 code that A is working (stub), or it could contain additional test code tha= t=20 tests for, e.g., known input/output values or a counter of the amount of=20 calls to B::bProc(). The latter would be a mock object. I hope I got the point and this was help for you. :-) Kind regards, Marcel =2D-=20 Marcel Winandy http://www.prosec.rub.de/staff/winandy.html Horst G=F6rtz Institute for IT Security, Ruhr-University Bochum |
From: CppUnit d. m. l. <cpp...@li...> - 2007-06-04 05:32:37
|
Hi All. Can Any body tell me how to test any module that is itself dependent on other modules. For example. i have class A having module named aProc(). And suppose aProc() makes a call to any module declared in other class, lets say B. as class A { //... bool aProc() { B b; if ( b.bProc()) // Call to B class' function { // DO SOMETHING } else { //DO SOMETHING } } So here in Class A aProc() is dependent on b.bProc()'s output. So my question is that do i need to make a TestSuits for class B also along with class A. Remember i want to unit test only Class A and not B. Regards, Sandeep. |
From: CppUnit d. m. l. <cpp...@li...> - 2007-06-04 05:31:18
|
Hi all. I have developed a Server Application that Tests a Client for possible test scenarios. It send an asynchrnous replies to client as a response to any command. Every time it sends an Asynchrnous reply, it creates a thread and make a remote procedure call to a function. My Question is that how to create a testCase for that module that is creating a thread and calling a remote procedure. Here is the sample code that creates a thread and make a remote procedure call. This RPC is based on ONCRPC framework. BOOL CRadioServerInterface :: Object_Login__Session_Status(unsigned short uArgs) { Session_status=uArgs; void * ignore = NULL; HANDLE login__thread; DWORD ID__loginThread; login__thread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) createLoginThread, ignore, 0, &ID__loginThread); if (login__thread == NULL) return FALSE; else return TRUE; } // THIS IS THEAD void CRadioServerInterface :: createLoginThread(void * ignore) { if( getInstance()->createClient() ) // CREATE A NEW CLIENT { // CALL A REMOTE PROCEDURE call__session_1(&(getInstance()->Session_status),getInstance()->m_clnt); clnt_destroy(getInstance()->m_clnt); // DESTROYS A CLIENT HANDLE } } HERE IN Object_Login__Session_Status I AM CREATING A THREAD NAMED createLoginThread IN THIS THREAD I AM CREATING 1. A CLIENT HANDLE TO A REMOTE CLIENT 2. MAKING A CALL TO REMOTE PROCEDURE NAMED call__session_1 3. AND DESTROYING A CLIENT HANDLE So i need to know how to create a TestCase for Object_Login__Session_status and for createLoginThread function. I have searched for it a lot but unable to found any solution for the problem. Regards, Sandeep. |
From: CppUnit d. m. l. <cpp...@li...> - 2007-05-02 10:14:11
|
Hi, I adopted CppUnit into our big project - it works smoothly, really thanks. But we have following mental problem: each function should test its parameters if they are valid (those tests must be performed inside of that function). We would like to be sure, that function tests if parameters are valid from CppUnit test cases to be sure, that some developers did not change those tests. It would be also good if such a function asserts during standard run (when not run from test case). =20 I added such things into my local copy of CppUnit and it seems to work OK. Do you thing that anybody else would be interested in such extension? I am able to contribute it into head branch if answer is possitive. Or is there other procedure to be followed? I choosed direct question, because I have functional request and also its solution. =20 Thank you for answer, Jan Mach. =20 |
From: CppUnit d. m. l. <cpp...@li...> - 2007-04-30 10:38:09
|
How can I create setup function at the suite level, Meaning that it is called at the beginning of the suite run and not for every test. Thanks -- View this message in context: http://www.nabble.com/setup%28%29-function-per-suite-not-per-test-tf3668930.html#a10251395 Sent from the cppunit-devel mailing list archive at Nabble.com. |
From: CppUnit d. m. l. <cpp...@li...> - 2007-04-16 15:58:59
|
Greetings, there is something strange in http://cppunit.sourceforge.net/doc/lastest/cppunit_cookbook.html towards the end ... where it says With Visual C++, this is done in Project Settings/Post-Build step, by adding the following command: <code></code>. I guess the command got lost ? Thank you for your consideration, Davide Bolcioni -- There is no place like /home. |
From: CppUnit d. m. l. <cpp...@li...> - 2007-04-11 17:22:08
|
SXMgdGhlcmUgYSB0dXRvcmlhbCBvbiBpbnRlcmNlcHRpbmcgdGhlIHRlc3QgcmVzdWx0cz8NCglP dXRwdXR0ZXJzPw0KDQpERVRBSUxTOg0KSSdkIGxpa2UgdG8gbGFiZWwgZWFjaCB0ZXN0IHdpdGgg YSB0ZXN0IGNhc2UgbmFtZSBhbmQgdGhlbiByZXBvcnQgdG8gc29tZSBmaWxlIChzYXksIGEgLkNT ViBmaWxlKSBvbiB0aGUgcmVzdWx0cy4NCgkiVGVzdENhc2UgTmFtZSIsICJTZXZlcml0eSIsICJT dGF0dXMiDQoJIlRlc3RDYXNlICdNaWNoYWVsJyIsIDMsICJPSyINCgkiVGVzdENhc2UgJ0RhdmUn IiwgMSwgIkZhaWxlZCINCgkiVGVzdENhc2UgJ0xvdWlzZSciLCAyLCAiT0siDQoJCS4uLg0K4pas 4pas4pasDQpCcnVjZSBkZSBHcmFhZg0KVmVyaWNlcHQsIEluY29ycG9yYXRlZA0KUmVzZXJ2b2ly IFBsYWNlDQoxNjAxIFRyYXBlbG8gUm9hZCwgU3VpdGUgMTQwDQpXYWx0aGFtLCBNYXNzYWNodXNl dHRzIChNQSkgMDI0NTEgVVMNCjc4MS40MTkuNjM1NzsgYnJ1Y2UuZGVncmFhZkB2ZXJpY2VwdC5j b20gDQo= |
From: CppUnit d. m. l. <cpp...@li...> - 2007-04-07 15:20:56
|
> error LNK2019: unresolved external symbol "__declspec(dllimport) public: > char const * __thiscall type_info::name(void)const " I can compile the Money example with Visual C++ 2005 Professional SP1 without any problems. Note : I don't use the English version of Visual Studio, so the labels I use here may not be fully the same as yours. I use the following procedure : 1) Unpack cppunit-1.11.0.tar.gz 3) Open examples\examples.dsw and convert all projects 4) Right click on the "money" project and select "Define as startup project" 5) Right click on the "money" project and select "Properties". Go to "Configuration properties" > "Linker" > "Input". In the list "Additional dependencies" remove "cppunitd.lib" then click "OK". 6) Click on the menu "Build" > "Build money". There are some warnings about sprintf. After the build, the tests are run : OK (4) The errors you get seems to be due to inconsistent compiler options between the static library "cppunit" and the "money" example. Especially the option /GR for enabling RTTI (Runtime Type Information). The option can be found in the Project Properties dialog box : "Configuration properties" > "C/C++" > "Language" > "Enable type information" Another point to be checked : before trying to compile with VS2005, did you try to compile with VS2003 or another older compiler ? If you did, make sure to "clean" your project, by deleting all directories named "Debug" or "Release" before trying to compile again. Good luck. Vincent Rivière vri...@us... |
From: CppUnit d. m. l. <cpp...@li...> - 2007-04-06 22:09:47
|
I tried recompiling our software containing Cppunit with Visual Studio 2005 and have very similar errors reported by Srivalli last month (3/6/07) "Compiling Money Example on Visual Studio 2005" but unfortunately, I don't see a helpful answer yet. We have been using Cppunit 10.0.2 (from June 18, 2004) and Microsoft Visual Studio .NET 2003. I see the latest Cppunit version is 1.12.0 which was released June 30, 2006. Can Cppunit 10.0.2 work with VS 2005? Can Cppunit 1.12.0 work with VS 2005? How do you resolve the following unresolved external symbols reported by Srivali? ---------------------------------------------------- When I compile Money Example of CPPUnit 1.11.0 with Visual Studio 2005 Professional Edition, I am getting linker errors for files cppunitd.lib, msvsprtd.lib as in: error LNK2019: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall type_info::name(void)const " (__imp_?name@type_info@@QBEPBDXZ) referenced in function "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl CppUnit::TypeInfoHelper::getClassName(class type_info const &)" (?getClassName@TypeInfoHelper@CppUnit@@SA?AV?$basic_string@DU?$char_trai ts@D@std@@V?$allocator@D@2@@std@@ABVtype_info@@@Z) cppunitd.lib=20 error LNK2005: "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??$?6DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YAAAV?$basic_ostream @DU?$char_traits@D@std@@@0@AAV10@ABV?$basic_string@DU?$char_traits@D@std @@V?$allocator@D@2@@0@@Z) already defined in cppunitd.lib(TextTestRunner.obj) msvcprtd.lib=20 ---------------------------------------------------- I'll forward a partial extraction of what I am getting when I recompile our software with VS 2005 after my name so you can see that similar errors (LNK2005 and LNK2019) are involved: Thanks, Loreene ------------------------------------------------------------------------ ---- cl -c -Ic:/home/wildcat/include -Ic:/home/wildcat/include/boost-1_32 -I.. -TP -EHsc -MD -GR -FoCloneableTest.o CloneableTest.cc Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. CloneableTest.cc link -out:CloneableTests CloneableTest.o -LIBPATH:c:/home/wildcat/lib -SUBSYSTEM:CONSOLE UnitTestMain.lib cppunit.lib Microsoft (R) Incremental Linker Version 8.00.50727.42 Copyright (C) Microsoft Corporation. All rights reserved. msvcprt.lib(MSVCP80.dll) : error LNK2005: "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??$?6DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YAAAV?$basic_ostream @DU?$char_traits@D@std@@@0@AAV10@ABV?$basic_string@DU?$char_traits@D@std @@V?$allocator@D@2@@0@@Z) already defined in cppunit.lib(SourceLine.obj) msvcprt.lib(MSVCP80.dll) : error LNK2005: "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<struct std::char_traits<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,char const *)" (??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D @std@@@0@AAV10@PBD@Z) already defined in UnitTestMain.lib(CppUnitTestMain.o) cppunit.lib(TypeInfoHelper.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall type_info::name(void)const " (__imp_?name@type_info@@QBEPBDXZ) referenced in function "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl CppUnit::TypeInfoHelper::getClassName(class type_info const &)" (?getClassName@TypeInfoHelper@CppUnit@@SA?AV?$basic_string@DU?$char_trai ts@D@std@@V?$allocator@D@2@@std@@ABVtype_info@@@Z) cppunit.lib(StringTools.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::end(void)const " (__imp_?end@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@ @QBE?AVconst_iterator@12@XZ) referenced in function "public: static class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > __cdecl CppUnit::StringTools::split(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,char)" (?split@StringTools@CppUnit@@SA?AV?$vector@V?$basic_string@DU?$char_trai ts@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_t raits@D@std@@V?$allocator@D@2@@std@@@2@@std@@ABV?$basic_string@DU?$char_ traits@D@std@@V?$allocator@D@2@@4@D@Z) cppunit.lib(StringTools.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::const_iterator __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::begin(void)const " (__imp_?begin@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@st d@@QBE?AVconst_iterator@12@XZ) referenced in function "public: static class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > __cdecl CppUnit::StringTools::split(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,char)" (?split@StringTools@CppUnit@@SA?AV?$vector@V?$basic_string@DU?$char_trai ts@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_t raits@D@std@@V?$allocator@D@2@@std@@@2@@std@@ABV?$basic_string@DU?$char_ traits@D@std@@V?$allocator@D@2@@4@D@Z) CloneableTests : fatal error LNK1120: 3 unresolved externals make[1]: *** [CloneableTests] Error 96 |
From: CppUnit d. m. l. <cpp...@li...> - 2007-04-02 17:11:55
|
Please cc me in the reply. Thank you. -Bikash On Mon, 2 Apr 2007, Bikash K Agarwalla wrote: > Hi, > I want to use a C++ unit testing framework which supports threads - the > framework should be thread safe and has support for testing > multi-threaded programs. > > Also if the framework helps in testing client-server applications, > that's a big help for my development. > > Can someone please suggest whethere cppunit helps with the above or any > other recommendations. I looked around the web but didn't find anything > definitive. > > Thanks for your help, > Bikash > |
From: CppUnit d. m. l. <cpp...@li...> - 2007-04-02 17:11:09
|
Hi, I want to use a C++ unit testing framework which supports threads - the framework should be thread safe and has support for testing multi-threaded programs. Also if the framework helps in testing client-server applications, that's a big help for my development. Can someone please suggest whethere cppunit helps with the above or any other recommendations. I looked around the web but didn't find anything definitive. Thanks for your help, Bikash |
From: CppUnit d. m. l. <cpp...@li...> - 2007-03-27 21:06:26
|
Baptiste - Any details on how I go about doing this ? Thanks Ranji cppunit-devel mailing list wrote: > > This mecanism is not supported, but you can implement your own test > factory in a TestSuite subclass. > > Baptiste. > ----- Original Message ----- > From: CppUnit development mailing list > To: cpp...@li... > Sent: Wednesday, January 31, 2007 9:18 PM > Subject: [Cppunit-devel] Question about cppUnit > > > Folks - > > > > I am a novice user of cppUnit but a pretty experienced one of JUnit & > MbUnit. I was wondering if one of you could provide an answer to the > following query: > > > > JUnit & MbUnit have the capability to loop over test cases defined in > XML files, parse them, dynamically create test cases and run these test > cases using their respective runners - I was wondering if cppUnit offered > the same capability so that I could refrain from statically defining all > my test cases. This would permit me to execute the same sequence of test > steps though with disparate data defined in these XML files > > > > Any hints, suggestions will be greatly appreciated. > > > > Thanks > > --- > Baptiste Lepilleur <bl...@us...> > CppUnit maintainer > OpenTest and CppUnit 2 developer. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Cppunit-devel mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppunit-devel > > Quoted from: http://www.nabble.com/Question-about-cppUnit-tf3159691.html#a9142043 |
From: CppUnit d. m. l. <cpp...@li...> - 2007-03-27 20:33:08
|
At the time it was written I guess I would have used 1.10.2. I am now working in a completely Linux environment so do not even have access to my old Windows box. Are you experiencing problems that I can help with? Please note that I have added further notes to the Wiki page, http://cppunit.sourceforge.net/cppunit-wiki/CppUnitVisualStudio2005Wizard. If someone is in a position to test them and update the wizard then I would be grateful. Paul On Fri, 2007-03-16 at 08:08 -0500, CppUnit development mailing list wrote: > Paul, > > What version (1.0, 1.10.2 or 1.12 or all) of the cppunit is the CPP > Unit Project Wizard intended to be used? > > > > Thanks, > > John > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ Cppunit-devel mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppunit-devel |
From: CppUnit d. m. l. <cpp...@li...> - 2007-03-16 13:07:47
|
Paul, What version (1.0, 1.10.2 or 1.12 or all) of the cppunit is the CPP Unit Project Wizard intended to be used? =20 Thanks, John |
From: CppUnit d. m. l. <cpp...@li...> - 2007-03-13 17:09:37
|
Hi, I'm new to CppUnit, so I hope this is not a frivolous post. I would like to use CPPUNIT_ASSERT_THROW to ensure that a function throws an STL std::exception for specific input conditions. However, this triggers a compiler error (C2312 for Microsoft's Visual C++ 2005 Express Edition), which has to do with having two handlers for the same exception. I'm using CppUnit version 1.12, but saw an item in the release notes of version 1.11.4 which indicates that this is indeed the case, and that CPPUNIT_ASSERT_THROW will not (or should not) compile if used with std::exception as the exception type. The link to the release notes for 1.11.4 is here: https://sourceforge.net/project/shownotes.php?group_id=11795&release_id=369052 This behaviour could possibly be altered by minor modifications to the definition of CPPUNIT_ASSERT_THROW_MESSAGE in testassert.h by using typeid to check the identity of the "ExceptionType" prior to the try-catch block. I do not know how many users would want such functionality (as the problem is easy to work around), but believe it would be an improvement to CppUnit if the macro performs as advertised in the documentation, even for the special case of checking std::exception throws. Would such a change be considered for an upcoming release? Thanks Robert |
From: CppUnit d. m. l. <cpp...@li...> - 2007-03-13 07:03:41
|
=20 Hi, i am using CPPUNIT_ASSERT_EQUAL(expected value, actual value) in my test cases. When the expected value is not the same as actual value, we get a failure message and both these values( i.e actual and expected ) are displayed. If the values are same i.e if the assertion was a success , we do not get any value. =20 I want the CPPUNIT_ASSERT_EQUAL(expected value, actual value) to behave in such a way that we get the expected and actual values even if they are same(i.e. even if it was not a failure). I am writing wrapper on top of it. Can u tell me where i need to make changes and what should be my basic focus on... =20 I will be thankful to you. =20 =20 =20 Regards Arvind =20 =20 =20 Arvind Upadhyay ge-healthcare@ics <mailto:ge-healthcare@ics> =20 =20 =20 |
From: CppUnit d. m. l. <cpp...@li...> - 2007-03-06 18:09:46
|
When I compile Money Example of CPPUnit 1.11.0 with Visual Studio 2005 Professional Edition, I am getting linker errors for files cppunitd.lib, msvsprtd.lib as in: error LNK2019: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall type_info::name(void)const " (__imp_?name@type_info@@QBEPBDXZ) referenced in function "public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl CppUnit::TypeInfoHelper::getClassName(class type_info const &)" (?getClassName@TypeInfoHelper@CppUnit@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVtype_info@@@Z) cppunitd.lib error LNK2005: "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??$?6DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z) already defined in cppunitd.lib(TextTestRunner.obj) msvcprtd.lib I am sure many of you experts out there have already solved this before. I would appreciate any help. Thanks! Srivalli. --------------------------------- Looking for earth-friendly autos? Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. |
From: CppUnit d. m. l. <cpp...@li...> - 2007-03-05 03:20:54
|
On Sat, Mar 03, 2007 at 04:12:51PM +0100, CppUnit development mailing list wrote: > > An easier fix is to have floatingPointIsFinite() return an int, since > > that is what isfinite(), finite() and _finite() all do. > > You're right ! > > Could someone commit that, please ? Done. -Steve |