Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] CppUnit integration

Here's my $0.02.

There is an enhancement request logged into bugzilla (for what that's worth)
requesting CPPUnit integration:

	http://bugs.eclipse.org/bugs/show_bug.cgi?id=23546

One thing to understand is that the JDT and the JUnit integration form part
of the Eclipse Platform SDK.  Unless we can convince people to write plugins
in C++ (:-)) our target audience is different.  In that light, including
CPPUnit in the CDT isn't as clear cut as I first thought.

One possible consideration is the new Hyades project which may also be a
candidate for this integration.  It appears, however, that they do not yet
have the infrastructure set up for submitting code (which actually goes to
the same place, BTW).

I haven't made anything clearer, but food for thought...

Doug Schaefer
Senior Staff Software Engineer
Rational - the software development company
Ottawa (Kanata), Ontario, Canada
 

-----Original Message-----
From: Mike Capp [mailto:aphelion@xxxxxxxxxxx] 
Sent: Friday, February 14, 2003 4:19 PM
To: cdt-dev@xxxxxxxxxxx
Subject: Re: [cdt-dev] CppUnit integration

On Fri, 14 Feb 2003 15:01:42 +0100, Lescuyer, Martin 
<mlescuyer@xxxxxxxxxxxx> wrote:

> From this, the CDT works the same without this plugin. But making a 
> parallel
> with the JDT, my thought is that it can be part of the CDT.
> Then the question is "Does the CppUnit framework itself should be part of
> the CDT or not".

I think the Java parallel is potentially misleading here. CppUnit has 
nothing *like* the mindshare among C++ developers that JUnit has for Java 
or NUnit for C#. A lot of people use other test frameworks (Boost.Test, 
cxxunit, home-grown), and even those that do use CppUnit generally end up 
modifying it to suit their own preferences. Pure C shops might not take too 
well to a C++ test framework either. Where there's a major investment in 
test code for some other framework, people aren't going to want to rewrite 
all that code by hand, and trying to convert it automagically doesn't sound 
like much fun.

I can see a standardized unit-test plugin interface or a recommended 
easily-parsed stdout format being very useful; folk could just write 
adaptors or sed scripts or whatever for their own framework. But I'm 
worried that bundling vanilla CppUnit with the CDT would just bulk up the 
distro without getting much use.

Cheers,
Mike

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top