RE: Re[2]: [Cppunit-devel] URGENT: more information to be logged
Brought to you by:
blep
From: Michel A. <Arm...@si...> - 2002-08-02 14:12:33
|
Hi. Currently it is very simple: - you can write test methods that take additional input as parameters - this input is read from an in-file (XML) I also suggested a more elaborate version of this approach (see devel-mailing list archive): - Introduce the notion of a TestContext in the Test interface - test methods would then use the TestContext to make use of input-parameters (see above) - TestOutputter would also be able to access this TestContext; this fact could be used to provide the additional information that you want to be outputted. This information could of course be included in the XML file that also contains the different parameterizations for the tests The TestContext class would be designed as a key/value-container. There would have to be a new/specialized Outputter that "knows" the content of the TestContext (the keys). Or the Outputter could just provide a basic support for outputting the contents of TestContext (iterating over all key/value pairs). But there hasn't been much interest in this concept, so we just developed the easy version yet... Regards 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... > |