I was about to suggest something among the same line:
- on the server side, grab the root suite. Traversing the test hierarchy
from the root suite, rebuild a hierarchy made of test proxy that can be
called from the client (the Test::run() also need to transport the Exception
that may be thrown).
- on the client side, retrieve the test proxy root suite and pass it to the
MFC test runner.
I think that implementing this can be fairly simple: you 'only' need a
generic implementation of the test proxy, one for the server side, and one
for the client side, as well as transporting CppUnit::Exception information.
Baptiste.
----- Original Message -----
From: "Gary Granger" <gr...@at...>
To: <a_...@gm...>
Cc: <cpp...@li...>
Sent: Thursday, June 06, 2002 7:21 PM
Subject: Re: [Cppunit-devel] distributed environment
>
> Hello Armin,
>
> I can suggest an alternative method of distributing the tests. I wanted
to
> run tests on a C++ application from the existing JUnit GUI, so I wrote a
> CORBA IDL for some of the CppUnit interfaces. This was relatively easy to
> do because the interfaces were simple and well-defined. Then I added
CORBA
> implementations for Tests and TestCases to the CppUnit library which serve
> as proxies for the actual Tests and TestCases in the C++ test application.
> So any Tests written using the existing CppUnit library could also be
> called remotely through CORBA. This method avoids serialization, the
front
> and back ends could be completely different architectures, different
> languages, and you could choose between the MFC GUI and the Java GUI. It
> was especially convenient for Java since CORBA is readily available, but I
> think a C++ front-end would also be possible.
>
> You can grab the source for my modified CppUnit and some simple READMEs
> from the UnixCppUnit section of my home page:
>
> http://www.atd.ucar.edu/~granger
>
> The modifications were based on an older version of CppUnit, but perhaps
> the example will still be useful to you.
>
> gary
>
> _______________________________________________________________
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> _______________________________________________
> Cppunit-devel mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppunit-devel
>
|