cppunit-devel Mailing List for CppUnit - C++ port of JUnit (Page 8)
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: David R. <dre...@gm...> - 2005-10-19 13:10:12
|
Hi, The CppUnit2 docs (http://cppunit.sourceforge.net/cppunit-wiki/CppUnit2/ThreadedTestCase) mention support for a ThreadedTestCase, specifically I'm interested in "Merging failures of created thread with the original thread failures". Are there any workarounds to get this behaviour with cppunit 1.10.2 ? -- - David |
From: <ana...@in...> - 2005-10-18 03:52:22
|
Hi, I need to know how to build cppUnit source code using GnuMake file. I have installed cygwin and downloaded cppunit-1.11.0 from sourceforge. Can you please suggest me how to go about building the libraries using makefile. Thanks Anant |
From: Baptiste L. <bl...@us...> - 2005-10-15 09:55:24
|
CPP Unit Newbie You don't need to build this project on VS 7. It's only required for = vc++ 6.0. The missing files are visual studio 6 automation headers. Baptiste. --- Baptiste Lepilleur <bl...@us...> CppUnit maintainer OpenTest and CppUnit 2 developer. ----- Original Message -----=20 From: Arkalgud, Srivalli=20 To: cpp...@li...=20 Sent: Friday, October 14, 2005 11:40 PM Subject: [Cppunit-devel] CPP Unit Newbie Hello!=20 I downloaded file cppunit-1.10.2.tar.gz from web-site = https://sourceforge.net/project/showfiles.php?group_id=3D11795. Size of = tar.gz file was 723,340 bytes. And followed the steps below:=20 1) Opened C:\CPPUnit\cppunit-1.10.2\src\CPPUnitLibraries.dsw in Visual = Studio .NET 2003=20 2) Clicked Build-->Batch build. Select all project and hit Build = button.=20 I see following build errors:=20 WINVER not defined. Defaulting to 0x0501 (Windows XP and Windows .NET = Server)=20 c:\CPPUnit\cppunit-1.10.2\src\msvc6\DSPlugIn\StdAfx.h(21) : fatal = error C1083: Cannot open include file: 'ObjModel\addauto.h': No such = file or directory Am I missing some files?=20 Thanks=20 Srivalli.=20 |
From: Srivalli A. <sar...@ya...> - 2005-10-14 22:03:54
|
Hello! I downloaded file cppunit-1.10.2.tar.gz from web-site https://sourceforge.net/project/showfiles.php?group_id=11795. Size of tar.gz file was 723,340 bytes. And followed the steps below: 1) Opened C:\CPPUnit\cppunit-1.10.2\src\CPPUnitLibraries.dsw in Visual Studio .NET 2003 2) Clicked Build-->Batch build. Select all project and hit Build button. I see following build errors: WINVER not defined. Defaulting to 0x0501 (Windows XP and Windows .NET Server) c:\CPPUnit\cppunit-1.10.2\src\msvc6\DSPlugIn\StdAfx.h(21) : fatal error C1083: Cannot open include file: 'ObjModel\addauto.h': No such file or directory Am I missing some files? Thanks Srivalli. --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs. Try it free. |
From: Arkalgud, S. <Sri...@in...> - 2005-10-14 21:40:25
|
Hello! I downloaded file cppunit-1.10.2.tar.gz from web-site https://sourceforge.net/project/showfiles.php?group_id=11795 <https://sourceforge.net/project/showfiles.php?group_id=11795> . Size of tar.gz file was 723,340 bytes. And followed the steps below: 1) Opened C:\CPPUnit\cppunit-1.10.2\src\CPPUnitLibraries.dsw in Visual Studio .NET 2003 2) Clicked Build-->Batch build. Select all project and hit Build button. I see following build errors: WINVER not defined. Defaulting to 0x0501 (Windows XP and Windows .NET Server) c:\CPPUnit\cppunit-1.10.2\src\msvc6\DSPlugIn\StdAfx.h(21) : fatal error C1083: Cannot open include file: 'ObjModel\addauto.h': No such file or directory Am I missing some files? Thanks Srivalli. |
From: <ana...@in...> - 2005-10-06 08:00:07
|
Hi, I need to know how to build cppUnit source code using GnuMake file. I have installed cygwin and downloaded cppunit-1.11.0 from sourceforge. Can you please suggest me how to go about building the libraries using makefile. Thanks Anant |
From: Adam S <spy...@gm...> - 2005-09-29 06:46:54
|
I can't get this to work. I get the following errors: TestRunner fatal error LNK1181: cannot open input file '..\..\..\lib\cppunit.lib' TestRunner fatal error LNK1181: cannot open input file '..\..\..\lib\cppunitd.lib' TestRunner fatal error LNK1181: cannot open input file '..\..\..\lib\cppunitd.lib' TestRunner fatal error LNK1181: cannot open input file '..\..\..\lib\cppunit.lib' cppunit_dll warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification DllPlugInTester fatal error LNK1181: cannot open input file 'cppunitd.lib' DllPlugInTester fatal error LNK1181: cannot open input file 'cppunit.lib' DllPlugInTester fatal error LNK1181: cannot open input file 'cppunit.lib' DllPlugInTester fatal error LNK1181: cannot open input file 'cppunitd.lib' e:\cppunit\src\msvc6\DSPlugIn\StdAfx.h(21): fatal error C1083: Cannot open include file: 'ObjModel\addauto.h': No such file or directory DSPlugIn error PRJ0019: A tool returned an error code from "duplicating DLL to lib directory" TestPlugInRunner fatal error LNK1181: cannot open input file '\cppunit\src\msvc6\testrunner\Release\TestRunner.lib' TestPlugInRunner fatal error LNK1181: cannot open input file '\cppunit\src\msvc6\testrunner\Debug\testrunnerd.lib' I followed the instructions at http://cppunit.sourceforge.net/doc/lastest/money_example.html. When I start up VS, I get a message saying that it needs to convert the .dsw file for us= e with VS2003. I clicked OK, and otherwise followed the instructions exactly. Please assist. Thanks, Adam |
From: Anderson, K. <KAn...@de...> - 2005-09-28 22:22:09
|
A little feedback on the Hello World Money example document...=0D=0A=0D=0AF= irst off, thanks for such a GREAT Example!!! By providing such complete=0D=0A= documentation, you've made my decision about which of the Unit Testing=0D=0A= Libraries I think I want to use. (Not a trivial decision these days...)=0D=0A=0D= =0AA few edits to this document... (If it were in a Wiki, I wouldn't have=0D= =0Ato bother you ;-)=0D=0A=0D=0ABy using the Tools/Options... to set up the= paths for the header include=0D=0Adirectory and the library include direct= ory, it sets it up for every=0D=0Aapplication that you run on this machine.= Since most of us work in=0D=0Agroups, it would also be appropriate to set = these values in the=0D=0AProject/Settings C++/Preprocessor/Additional Inclu= de Directories... and=0D=0Athe Link/Input/Additional Library Path... settin= gs so that other people=0D=0Ain the group would get these changes when they= next did a get of the dsw=0D=0Afile. Of course, this is not an MSVC tutori= al, so you might not want to=0D=0Ago into such detail.=0D=0A=0D=0ANowhere d= o you indicate that MoneyTest.h should include Money.h, but=0D=0Athat's nec= essary after the exception class is added to Money.h=0D=0A=0D=0AFinally, th= e line:=0D=0A CPPUNIT_ASSERT_EQUAL( expectedMoney =3D=3D money.getAmount()= ); // +=3D=0D=0Aworks=0D=0Ain MoneyTest::testAdd() needs to be:=0D=0A CP= PUNIT_ASSERT_EQUAL( expectedMoney.getAmount() , money.getAmount() );=0D=0A/= / +=3D works=0D=0A=0D=0AI don't know if the form of the macro changed, or i= f this was just a=0D=0Amental error...=0D=0A=0D=0AAll in all, a tremendous = tutorial!!=0D=0A=0D=0A-Kelly=0D=0A=0D=0A=0D=0A=0D=0A=0D=0A=0D=0AE-Mail mess= ages may contain viruses, worms, or other malicious code. By reading the me= ssage and opening any attachments, the recipient accepts full responsibilit= y for taking protective action against such code. Sender is not liable for = any loss or damage arising from this message.=0D=0A=0D=0AThe information in= this e-mail is confidential and may be legally privileged. It is intended = solely for the addressee(s). Access to this e-mail by anyone else is unauth= orized.=0D=0A |
From: mats w. <mat...@fr...> - 2005-09-25 12:24:49
|
after much study (and plenty of gin, during the dark moments...) i have made the money example work (win version). i am now mildly hopeful that i can soon begin to say junit-like things to the c++ code my esteemed colleagues write. it would not have been possible without you and this piece of work, so thanks very much. honest, i mean it, thank you very much! mats ps: incidentally, i wrote log book as i went along. if this is boring just junk it, otherwise enjoy: (vc++ .net 2003): 1) batch build received a few warnings and fails, all of these appear to be harmless, how ever this is not obvious to the newbie so maybe a word of warning will be in order - nexttime, of course:-) details follow: - cppunit / Release win32: 3 x LNK4221 from the XXXDynamicLibraryManagers - TestRunner / Release UniCode Win32: WINVER not defined (default is OK) and LNK4017 unsupported DESCRIPTION thingy - TestRunner / Debug Win32: LNK4075 EDITANDCONTINUE ignored due to INCREMENTAL=no - LNK4075 also happens in cppunit_dll debug win32, DllPluginTester debug unicode win32, DllPluginTester debug static win32 - DSPlugin Release Win32 has a C1083 out of StdAfx.h(21) 2) settings.locations for vc++ .net 2003 were not quite as given: + for includes, libs, src files go to tools-options, select the projects folder, selecct vc++-directories and make changes there as indicated. i dont know if it matters at all, but i found that these settings work when new entries are moved to the rear of the existing list, which seemed "tidy" to me. + the field for "object/library modules" is rather obsscsure in myy german version, i eventually found it to be project-properties -> link -> input -> further dependencies 3) my copy of the text suggested the post build step text should be $(TargetPath)$, which does not work. It should be $(TargetPath)<no trailing $$$> |
From: Vinaya, B. (IE10) <Vin...@ho...> - 2005-09-13 08:33:12
|
Hi, We are using CppUnit Test Framework with few modifications, for Verification and Validation of a part of Airbourne software. The version of the CppUnit needs to be stated in some of the Artifacts. The Cppunit that we are using has been downloaded from www.sourceforge.net <http://www.sourceforge.net> and to my knowledge it is version 1.6.2 but the file config-bcb5.h contains the following code that identifies the version, /* Version number of package */ #ifndef CPPUNIT_VERSION #define CPPUNIT_VERSION "1.5.5" #endif Please let me know which version is the proper one. Since we have made few modifications, we like to change the version number( only at our organizational level ), Please suggest a version so that it would not conflict with the versions available in www.sourceforge.net <http://www.sourceforge.net> . Thank You, Vinay |
From: <mpe...@ce...> - 2005-09-12 15:19:04
|
Compiling with VStudio 2003, I get 4 errors: cppunit error PRJ0019: A tool returned an error code from "Copying target to lib/" TestRunner fatal error LNK1181: cannot open input file '..\..\..\lib\cppunitd.lib' TestPlugInRunner fatal error LNK1181: cannot open input file '\C\cppunit-1.10.2\src\msvc6\testrunner\Debug\testrunnerd.lib' cppunit_dll warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification I corrected this with 2 steps: - creating the lib directory - renaming in cppunit project the output filename from .lib to .dll (a .lib and a .dll were created anyway). ------ Murilo Perrone CertiSign |
From: Baptiste L. <gai...@fr...> - 2005-09-09 08:11:36
|
? ? wrote: > Dear Sir. > I want to explore one question about how to use the Cppunit under > the Hp-Unix. > I want integrate the Cppunit with my project in HP-Unix. Compiling > the packages and running the examples are OK .But the questions come > to us, when we want to test one class in our project by using Cppunit > ,we found it is hard to write the Makefile manually . Because It > doesn't work if we compile the file by only including the LIB and > INCLUDE path of Cppunit. In examples (Just like the project > "Money"). the Makefile files are generated automatically by the > configure shell and it has a long code section. Can you can me how to > automake them or guide me to find some docs about it?Thank you. > I am looking for your answers. Automake is a gnu project. You can find the official documentation at the following location: http://www.gnu.org/software/automake/manual/html_node/ There is also the autobook: http://sources.redhat.com/autobook/ I don't know much about the autotools myself. You can find a small 'getting started' project in the 'money' step by step project that should get you started. Baptiste. > Best wishes! > > Bryant > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices Agile & Plan-Driven Development * Managing Projects & Teams > * Testing & QA Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ Cppunit-devel mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppunit-devel |
From: Baptiste L. <gai...@fr...> - 2005-09-09 08:07:02
|
Dadey, Rupert wrote: > the following code seems to work in release config but in debug > config it crashes at indicated line > > int main( int argc, char **argv) > { > CppUnit::TextUi::TestRunner runner; > CppUnit::TestFactoryRegistry ®istry = > CppUnit::TestFactoryRegistry::getRegistry(); > runner.addTest( registry.makeTest() ); // CRASH CALLING THIS LINE > IN DEBUG MODE > bool wasSuccessful = runner.run( "", false ); > return wasSuccessful; > } Does the cppunitTestMain examples works for you ? It does something similar and works fine on my side. Notes that you need at least VC6 service pack 5. Baptiste. > > rupert --- Baptiste Lepilleur <bl...@us...> CppUnit maintainer OpenTest and CppUnit 2 developer. |
From: Baptiste L. <gai...@fr...> - 2005-09-09 08:01:09
|
ext...@no... wrote: > Hi , > > A quick question :- > > Is there a specific port for Linux or will the current distribution > suffice ? The current distribution should work. Baptiste. > > Cheers, > Justin --- Baptiste Lepilleur <bl...@us...> CppUnit maintainer OpenTest and CppUnit 2 developer. |
From: Dadey, R. <Rup...@ri...> - 2005-09-01 12:30:18
|
the following code seems to work in release config but in debug config = it crashes at indicated line int main( int argc, char **argv) { CppUnit::TextUi::TestRunner runner; CppUnit::TestFactoryRegistry ®istry =3D = CppUnit::TestFactoryRegistry::getRegistry(); runner.addTest( registry.makeTest() ); // CRASH CALLING THIS LINE IN = DEBUG MODE bool wasSuccessful =3D runner.run( "", false ); return wasSuccessful; } rupert --=20 This e-mail and any files transmitted with it are confidential and = intended solely for the use of the individual or entity to whom they are = addressed. If you have received this e-mail in error please notify the sender = immediately and delete this e-mail from your system. Please note that any views or = opinions presented in this e-mail are solely those of the author and do not = necessarily represent those of Ricardo (save for reports and other documentation = formally approved and signed for release to the intended recipient). Only = Directors or Duly Authorised Officers are authorised to enter into legally binding obligations on behalf of Ricardo unless the obligation is contained = within a Ricardo Purchase Order. Ricardo may monitor outgoing and incoming e-mails and other = telecommunications on its e-mail and telecommunications systems. By replying to this = e-mail you give consent to such monitoring. The recipient should check this e-mail = and any attachments for the presence of viruses. Ricardo accepts no = liability for any damage caused by any virus transmitted by this e-mail. "Ricardo" = means Ricardo plc and its subsidiary companies. Ricardo plc is a public limited company registered in England with = registered number 00222915. The registered office of Ricardo plc is Bridge Works, Shoreham-by Sea, West Sussex, BN43 5FG. =20 |
From: <pe...@va...> - 2005-08-25 23:26:10
|
Hi! It seems to me the last line of the Makefile.am listing on the money example page is erroneous: -MoneyApp_LDFLAGS = -ldl +MoneyApp_LDADD = -ldl I had some trouble getting it right, so I wanted to let you know. Anyway, thanks for making and documenting what seems like a very neat unit testing package! Mattias |
From: ? ? <bry...@ms...> - 2005-08-24 06:28:48
|
Dear Sir. I want to explore one question about how to use the Cppunit under the Hp-Unix. I want integrate the Cppunit with my project in HP-Unix. Compiling the packages and running the examples are OK .But the questions come to us, when we want to test one class in our project by using Cppunit ,we found it is hard to write the Makefile manually . Because It doesn't work if we compile the file by only including the LIB and INCLUDE path of Cppunit. In examples (Just like the project "Money"). the Makefile files are generated automatically by the configure shell and it has a long code section. Can you can me how to automake them or guide me to find some docs about it?Thank you. I am looking for your answers. Best wishes! Bryant |
From: a_jain <a_j...@ya...> - 2005-08-19 09:35:58
|
Hello, I am Alex, an information engeering student in Taiwan. I read online docs already, but there's only building ways for VC++, and GCC under those Unix systems. Unfortunately, my IDE environment is Dev-C++. I tried figuring that out by searching on the net but in vain. I really wanna use CppUnit this powerful tool. Thanks in advance. The following is dev-c++ url http://www.bloodshed.net/dev/devcpp.html __________________________________________________ 想即時收到新信通知? 馬上下載Yahoo!奇摩即時通訊 http://messenger.yahoo.com.tw/ |
From: <ext...@no...> - 2005-08-18 21:26:24
|
Hi , A quick question :- Is there a specific port for Linux or will the current distribution = suffice ? Cheers, Justin |
From: Baptiste L. <bl...@us...> - 2005-08-11 18:58:00
|
Aje...@in... wrote: > Hello, > > I am Ajesh from Infineon Technologies India, using CppUnit Test tool > for Unit testing. > > When I build the code (cppunit-1.10.2), I am facing some problem in > compililng. I am sending the errors occurred. > Please solve my problem as early as possible. > > The Errors are: > > 1. cppunit error PRJ0019: A tool returned an error code from > "Copying target to lib/" You are probably using the cppunit-cvs-1.10.2.tar.gz. The directory lib/ is missing. Just create it and make sure the library get copied there in the post-build step or get the cppunit-1.10.2.tar.gz distrib and rebuild everything. Baptiste. --- Baptiste Lepilleur <bl...@us...> CppUnit maintainer OpenTest and CppUnit 2 developer. |
From: Henning W. <hen...@di...> - 2005-08-11 09:50:16
|
Am Mittwoch 10. August 2005 10:12 schrieb Aje...@in...: > Hello, > I am Ajesh from Infineon Technologies India, using CppUnit Test tool for > Unit testing. > [Errors from compiler output..] > 1. cppunit error PRJ0019: A tool returned an error code from > "Copying target to lib/" > [..] > 3. TestRunner fatal error LNK1181: cannot open input file > '..\..\..\lib\cppunitd.lib' > [..] > 5. simple fatal error LNK1181: cannot open input file > 'cppunitd.lib' > [..] > 14. CppUnitTestMain fatal error LNK1181: cannot open input file > 'cppunitd.lib' > [..] Hello Ajesh, your linker can not found the cppunit library file, as stated in the compil= er=20 output. Have you tried to solve the cause for the first error (can not copy= =20 target to lib/)?=20 If your problem persists, please provide more info about your platform=20 (compiler, operating system..). Then perhaps someone (with more knowledge=20 about the windows platform than i) could help you on this list. Best regards and good luck, Henning Westerholt |
From: <Aje...@in...> - 2005-08-10 08:13:29
|
Hello, I am Ajesh from Infineon Technologies India, using CppUnit Test tool for Unit testing. When I build the code (cppunit-1.10.2), I am facing some problem in compililng. I am sending the errors occurred. Please solve my problem as early as possible. The Errors are: 1. cppunit error PRJ0019: A tool returned an error code from "Copying target to lib/" 2. cppunit_dll warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification 3. TestRunner fatal error LNK1181: cannot open input file '..\..\..\lib\cppunitd.lib' 4. money fatal error LNK1181: cannot open input file 'cppunitd.lib' 5. simple fatal error LNK1181: cannot open input file 'cppunitd.lib' 6. TestPlugInRunner warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification 7. HostApp error PRJ0019: A tool returned an error code from ".\Debug\testrunnerd.dll" 8. DumperPlugIn warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification 9. DllPlugInTesterTest error PRJ0019: A tool returned an error code from "Updating c:\ims\cppunit-1.10.2\lib\cppunit_dll.dll" 10. simple_plugin warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification 11. simple_plugin error PRJ0019: A tool returned an error code from "Running tests..." 12. hierarchy fatal error LNK1181: cannot open input file '..\..\lib\cppunitd.lib' 13. CppUnitTestPlugIn warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification 14. CppUnitTestMain fatal error LNK1181: cannot open input file 'cppunitd.lib' 15. CppUnitTestApp error PRJ0019: A tool returned an error code from ".\Debug\testrunnerd.dll" 16. ClockerPlugIn warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification Thanks for co-operation With warm Regards Ajesh=20 Wireless Communication Infineon Technologies India Pvt. Ltd. Direct # +91-80-51392141 Mobile # +91-9845035261 Visit us: www.infineon.com *********************************************************************** "Nothing great is ever achieved without enthusiasm" *********************************************************************** Disclaimer This e-mail and any attachments are confidential and may be subject to legal or some other professional privilege. They are intended solely for the attention and use of the named addressee(s). They must not be disclosed to any person without authorization. This e-mail and any attachments are also subject to copyright. They may only be copied or distributed with the consent of the copyright owner. If you are not a named addressee you must not use, disclose, retain or reproduce all or any part of the information contained in this e-mail or any attachments. If you have received this email by mistake please notify the sender immediately by return email and delete or destroy all copies of the email. Any confidentiality, privilege or copyright is not waived or lost because this email has been sent to you by mistake.=20 |
From: Tom H. <tom...@us...> - 2005-08-08 01:55:11
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Is there any way to get the current test name from within TestFixture::setUp()? Cheers, - -- Tom Howard -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC9rtuw1G4ZUM7KZoRAtPBAJ9sobh9Dbwrf0xN5kjJbopka3jRhwCfetQP MSPqcZJSnXZRN+oxMvuHfYo= =JZTD -----END PGP SIGNATURE----- |
From: Baptiste L. <bl...@us...> - 2005-08-05 08:25:29
|
Baptiste Lepilleur wrote: > Gola Bartlomiej-ABG014 wrote: >> Hi Baptiste, >> >> Yes, you are right, the original version of the >> CPPUNIT_TEST_SUITE_REGISTRATION macro work well in source files. >> However my version of this macro can also be used in header files. >> That's why I dare to say it's a bit better than the original. > > The problem with the proposed implementation is that is does not work > with all 'ATestFixtureType ' types. It assumes that the Type is a > simple identifier while CppUnit allows just any types. For example: > > CPPUNIT_TEST_SUITE_REGISTRATION( MyNamespace::SomeTest ) > CPPUNIT_TEST_SUITE_REGISTRATION( BoardGameTest<BoardGame> ) > > are perfectly valid usage. > >> >> Of course it is a matter of style or personal preference whether one >> creates unit test code using header file only (or a classic pair: >> header + source file). I myself prefer to have a test code for a >> given class in a single header file. And that's why I've created the >> new version of the CPPUNIT_TEST_SUITE_REGISTRATION macro. > > I see two solutions: > - stick to using only source files instead of headers (registration > works fine and meet is initial goal of preventing compile time > dependencies) - use only headers and drop registration macros: use > explicit registration such as > runner.addTest( BoardGameTest<BoardGame>::suite() ); > runner.addTest( ChessTest<Chess>::suite() ); > as atempting to use registration macro in that context completly > defeat their initial goal. > > Baptiste. >> [...] >> >> Hi, >> >> I've encountered a problem when using CPPUNIT_TEST_SUITE_REGISTRATION >> macro. >> >> I have several files with various tests and in each one of them I'm >> using the above macro to register the test class. The problem arises >> when you put the registration macro in the same line (but in the >> separate files!) which generates compilation error (identifier >> redefinition). >> >> To resolve the problem, I've modified the >> CPPUNIT_TEST_SUITE_REGISTRATION macro: instead of using the >> "autoRegisterRegistry__" prefix for a class name, a little bit more >> complex syntax could be used. >> >> The modified macro: >> #define CPPUNIT_TEST_SUITE_REGISTRATION( ATestFixtureType ) \ >> static CPPUNIT_NS::AutoRegisterSuite< ATestFixtureType > \ >> CPPUNIT_MAKE_UNIQUE_NAME( CPPUNIT_JOIN(ATestFixtureType, >> _AutoRegisterSuite_) ) >> >> >> The original version: >> #define CPPUNIT_TEST_SUITE_REGISTRATION( ATestFixtureType ) \ >> static CPPUNIT_NS::AutoRegisterSuite< ATestFixtureType > \ >> CPPUNIT_MAKE_UNIQUE_NAME(autoRegisterRegistry__ ) >> >> If you think it is a good idea I would more than happy if you used my >> solution in the next CppUnit version. >> >> Best regards and thanks for a great test framework, >> Bartek Gola >> > --- > Baptiste Lepilleur <bl...@us...> > CppUnit maintainer > OpenTest and CppUnit 2 developer. |
From: Baptiste L. <gai...@fr...> - 2005-08-02 17:47:36
|
vi...@re... wrote: > Hello, > > I would like to make a comment about doc that describes > PlugInManager::load() method. It says: > > ------- > Exceptions: > DynamicLibraryManager is thrown if an error occurs during loading. > > ------- > > Maybe you meant DynamicLibraryManagerException, not > DynamicLibraryManager? Fixed, Thanks ! > > Thanks, > Victor --- Baptiste Lepilleur <bl...@us...> CppUnit maintainer OpenTest and CppUnit 2 developer. |