Re[4]: [Cppunit-devel] URGENT: more information to be logged
Brought to you by:
blep
From: Luis J. <ljo...@cr...> - 2002-08-02 14:22:30
|
Hello, That is a good solution. I solved my problem, by adding members in the Test (like name exists), and in the CPPUNIT_TEST() macro for adding the test to the suite, I added more arguments. My problem right now is the difficulty that will arrise when I want to upgrade Cppunit with new releases. Luis Joaquim Friday, August 2, 2002, 3:11:38 PM, you wrote: MA> Hi. MA> Currently it is very simple: MA> - you can write test methods that take additional input as parameters MA> - this input is read from an in-file (XML) MA> I also suggested a more elaborate version of this approach (see MA> devel-mailing list archive): MA> - Introduce the notion of a TestContext in the Test interface MA> - test methods would then use the TestContext to make use of MA> input-parameters (see above) MA> - TestOutputter would also be able to access this TestContext; this fact MA> could be used to provide MA> the additional information that you want to be outputted. This information MA> could of course be MA> included in the XML file that also contains the different MA> parameterizations for the tests MA> The TestContext class would be designed as a key/value-container. There MA> would have to be a new/specialized Outputter that "knows" the content of the MA> TestContext (the keys). Or the Outputter could just provide a basic support MA> for outputting the contents of TestContext (iterating over all key/value MA> pairs). MA> But there hasn't been much interest in this concept, so we just developed MA> the easy version yet... MA> Regards MA> Armin (bored) >> -----Original Message----- >> From: Luis Joaquim [mailto:ljo...@cr...] >> Sent: Freitag, 2. August 2002 15:58 >> To: Michel Armin >> Subject: Re[2]: [Cppunit-devel] URGENT: more information to be logged >> >> >> Viva, >> >> Can you give me an idea of what that approach is ? >> >> Thanks, >> >> Luis Joaquim >> >> Friday, August 2, 2002, 2:46:02 PM, you wrote: >> >> MA> Maybe the "parameterized tests" approach we just >> developed may help you >> MA> here. >> MA> But currently this new feature isn't available in the CVS yet. >> >> MA> Regards, >> >> MA> bored >> >> >> -----Original Message----- >> >> From: Luis Joaquim [mailto:ljo...@cr...] >> >> Sent: Montag, 29. Juli 2002 17:03 >> >> To: cpp...@li... >> >> Subject: [Cppunit-devel] URGENT: more information to be logged >> >> Importance: High >> >> >> >> >> >> Hello, >> >> >> >> I need to report more information about the tests, like a brief >> >> description, the inputs and outputs. >> >> >> >> The programmer will write this fields (strings). >> >> >> >> I have thought on the implementation and it seems I have >> to change a >> >> lot of files, and would my very hard future upgrades. >> >> >> >> Does anyone know a better solution? >> >> >> >> Does anyone have the some problem? >> >> >> >> Don't you think it would be a nice feature? >> >> >> >> Thanks in advance, >> >> >> >> Luis Joaquim >> >> >> >> -- >> >> Luis Joaquim >> >> Critical Software, SA >> >> EN1/IC2, Km 185,6, Banhos Secos, Santa Clara >> >> 3040-032 Coimbra >> >> Tel: +351.239.801300, Fax: +351.239.801319 >> >> http://www.criticalsoftware.com >> >> >> >> >> >> >> >> ------------------------------------------------------- >> >> This sf.net email is sponsored by: Dice - The leading >> online job board >> >> for high-tech professionals. Search and apply for tech jobs today! >> >> http://seeker.dice.com/seeker.epl?rel_code=31 >> >> _______________________________________________ >> >> Cppunit-devel mailing list >> >> Cpp...@li... >> >> https://lists.sourceforge.net/lists/listinfo/cppunit-devel >> >> >> >> >> MA> ------------------------------------------------------- >> MA> This sf.net email is sponsored by:ThinkGeek >> MA> Welcome to geek heaven. >> MA> http://thinkgeek.com/sf >> MA> _______________________________________________ >> MA> Cppunit-devel mailing list >> MA> Cpp...@li... >> MA> https://lists.sourceforge.net/lists/listinfo/cppunit-devel >> >> >> -------------------------------------------------------------- >> -------------- >> ------------ >> Critical Software has changed address and phones - >> please check new contacts below >> -------------------------------------------------------------- >> -------------- >> ------------ >> --- >> Luis Joaquim >> Critical Software, SA >> EN1/IC2, Km 185,6, Banhos Secos, Santa Clara >> 3040-032 Coimbra >> Tel: +351.239.801300, Fax: +351.239.801319 >> http://www.criticalsoftware.com >> ljo...@cr... >> ---------------------------------------------------------------------------- ------------ Critical Software has changed address and phones - please check new contacts below ---------------------------------------------------------------------------- ------------ --- Luis Joaquim Critical Software, SA EN1/IC2, Km 185,6, Banhos Secos, Santa Clara 3040-032 Coimbra Tel: +351.239.801300, Fax: +351.239.801319 http://www.criticalsoftware.com ljo...@cr... |