Re: [Cppunit-devel] CppUnit 1.7.10 tar ball
Brought to you by:
blep
From: Baptiste L. <gai...@fr...> - 2002-04-05 12:53:49
|
----- Original Message ----- From: "Robert Wenner" <ro...@po...> To: "Baptiste Lepilleur" <gai...@fr...>; <cpp...@li...> Sent: Friday, April 05, 2002 8:12 AM Subject: Re: [Cppunit-devel] CppUnit 1.7.10 tar ball > Hi Baptiste, > > excuse me for sending directly to you (and the list) but I'm not sure > if I can post to the list again. > > On Thursday 04 April 2002 17:42, Baptiste Lepilleur wrote: > > > /usr/bin/install: cannot create regular file > > > `/usr/local/share/cppunit/html/html/index.html': No such file or > > > directory > > > make[2]: *** [install-htmlDATA] Error 1 > > > That's one "html" too much? > > > > You may not have installed doxygen (the documentation generator). > I do have Oxygen installed. > I think, the path is wrong, should be > usr/local/share/cppunit/html/index.html > but is > usr/local/share/cppunit/html/html/index.html Does the file usr/local/share/cppunit/html/index.html exists ? If I remember, I think cppunit/html is the root for generated docs, and contains a subdirectory for each format (rtf, html, latex...) > > > Could you check that include/ is the directory you give to the > > compiler ? > I use the -I/home/robert/cppunit/include/cppunit switch. > All other include files work well. It should definitively be -I/home/robert/cppunit/include/. How it works is beyond me. > > > [TextTestRunner] > > I'll probably fix that after 1.8.0. I think I'll introduce a > > CppUnit::TestRunner class which does not use any outputter, but > > create a default TestResult and give access to the TestResult. run() > > would run the specified test and that's it. > I already made two changes to TestRunner: > 1) It does not make any output or pausing; > 2) In the findTestByName method it scans only the top level suites. I > added code to do a recursive search descending to all suites to find a > test or a suite by the given name; > > I attatched the diff of the original file and my modified version if > someone's interested in it. Yuups, that's pretty much what I was talking about. Please notes that dynamic_cast<> is not allowed in cppunit core lib (not portable enough it seems). Deep hierarchy exploration and findTestByName() will be done in a portable way adding a more composite like interface to class Test: class Test { [...] virtual int getChildTestCount() const; virtual Test *getChildTest( int index ) const; virtual Test *findTestByName( const std::string &testName ) const; } Default implementation will be provided for 'leaf' (no child test). But I want to get 1.8.0 out before I tackle this (there's already far too much new features in that release). Baptiste. > > Robert > |