Re: [Cppunit-devel] VC++ Add-Ins for IDE integration of Unit test result
Brought to you by:
blep
From: Bastiaan B. <bas...@li...> - 2001-04-22 01:10:25
|
Baptiste Lepilleur wrote: > Well, I started looking at how add-ins work for VC++. It seems to be a > possible things to do (I don't know a thing about that, so I'll be discovering > things there). I'll base the add-ins on > http://www.codeproject.com/macro/openvc.asp, a code base to make VC++ add-ins, > and http://www.codeproject.com/useritems/wwhizinterface.asp which is a nice > helper to use VC++ automation. > Great, integration with VC++ will make a lot of people happy I think. One note: under what license are the above pieces of code released? I ask, because Win32 code seems to be released under a free license far less often than *nix code. > > Here is how I see things working: > - You launch the test runner as usual. You get your visual feedback > (red/green). The result of the testing is also written into a file (I should be > possible to use something like a composite TestResult do to that). > - The Add-ins detects the file update (how?), processes the result > (translate absolute path name to project relative file...). > If I remember correctly the Win32 API has a feature with which a process can request a notification when a certain directory or file changes. > Is the process similar with emacs. Can the composant that generates the file > with the test result be comon ? Does it fit with the output of the java test > runner you talked about (or at least part of it) ? > The emacs method is very simple: if you choose 'compile' under the tools menu, emacs will run an external program (by default 'make -k'). It then puts the output of this program in a separate buffer. This program (usually gcc or g++) outputs it messages in the format '<filename>:<linenumber>: <message>'. Emacs 'knows' this simple format, so if you display the output buffer and click on one of these lines, emacs will display the corrresponding file at the correct line. That's all. This would work with the Java test runner too. Bastiaan > > Baptiste. > > --- > Baptiste Lepilleur <gai...@fr...> > http://gaiacrtn.free.fr/index.html > > _______________________________________________ > Cppunit-devel mailing list > Cpp...@li... > http://lists.sourceforge.net/lists/listinfo/cppunit-devel |