Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Unit Testing Support
Unit Testing Support [message #197722] Thu, 19 July 2007 04:15 Go to next message
Eclipse UserFriend
Originally posted by: usenet.aristeia.com

Now that I've gotten my feet wet with Eclipse and CDT, I'd like to play around
with a unit testing framework. The information at
http://cppunit.sourceforge.net/cppunit-wiki/CppUnitWithEclip se suggests that
CppUnit can be made to work with the CDT, but http://www.ifs.hsr.ch/1461 (and
ensuing pages) introduces CUTE and suggests that it is easier to use than CppUnit.

There's also a review of several unit test framework (from 2004) at
http://www.gamesfromwithin.com/articles/0412/000061.html ; the review makes no
mention of Eclipse support.

I'm still quite new to Eclipse/CDT and I've never used any unit testing
framework, so I'm eager to hear pros/cons/recommendations/unrecommendations
regarding what I should try.

I'm running Europa on WinXP.

Thanks,

Scott
Re: Unit Testing Support [message #197757 is a reply to message #197722] Thu, 19 July 2007 07:00 Go to previous messageGo to next message
Emanuel Graf is currently offline Emanuel GrafFriend
Messages: 10
Registered: July 2009
Junior Member
Scott Meyers wrote:

> Now that I've gotten my feet wet with Eclipse and CDT, I'd like to play
> around
> with a unit testing framework. The information at
> http://cppunit.sourceforge.net/cppunit-wiki/CppUnitWithEclip se suggests
> that CppUnit can be made to work with the CDT, but
> http://www.ifs.hsr.ch/1461 (and ensuing pages) introduces CUTE and
> suggests that it is easier to use than CppUnit.
>
> There's also a review of several unit test framework (from 2004) at
> http://www.gamesfromwithin.com/articles/0412/000061.html ; the review
> makes no mention of Eclipse support.
>
> I'm still quite new to Eclipse/CDT and I've never used any unit testing
> framework, so I'm eager to hear
> pros/cons/recommendations/unrecommendations regarding what I should try.
>
> I'm running Europa on WinXP.
>
> Thanks,
>
> Scott

We will publish a new version of the CUTE Plug-in next week. As far as I now
there is no other C++ testing framework with a CDT integration like CUTE.
On the CDT CVS repository you can find a cppunit plug-in but nobody worked
on it for ages so I guess it will not work with the CDT 4.0

You could use the CUTE result viewer with other test fameworks if you can
configure the test output.

If you need support for CUTE feel free to contact me.

greetings

Emanuel
Re: Unit Testing Support [message #197772 is a reply to message #197722] Thu, 19 July 2007 09:01 Go to previous messageGo to next message
Jens Seidel is currently offline Jens SeidelFriend
Messages: 88
Registered: July 2009
Member
Scott Meyers wrote:

> Now that I've gotten my feet wet with Eclipse and CDT, I'd like to play
> around
> with a unit testing framework. The information at
> http://cppunit.sourceforge.net/cppunit-wiki/CppUnitWithEclip se suggests
> that CppUnit can be made to work with the CDT, but

Mmh, I don't see any relation to Eclipse ...
As far as I understood all your links just refer to how to compile the unit
test software itself with Eclipse (which is nosense on a Linux system as it
is available by default, even if not a simple "./configure && make && make
install" installs it) which is not important. It doesn't cover the *usage*
if unit tests in *your* program with Eclipse, right?

I don't know the Eclipse Java interface, but is there some integration into
Eclipse or is a unit test just another piece of code which is started via
the launcher or (using autotools) a make target?

How could Eclipse help me using or writing unit tests?

PS: I use the Boost unit test, but nothing except common macros as
BOOST_CHECK_EQUAL for simple (but many) tests ... It works well but could
be replaced by any other unit test framework for sure.

Jens
Re: Unit Testing Support [message #197780 is a reply to message #197772] Thu, 19 July 2007 09:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fwein.lse.eei.uni-erlangen.de

> How could Eclipse help me using or writing unit tests?
Well, unit testing with Java is different due to much more
powefull "RTTI". I used the JUnit integration of JBuilder quite
a lot and the integration was quite helpful.

An API can help by generating a testcode sceleton, linking
code to testcode and by a nive visual representation of the
testcodes.

Fabian
Re: Unit Testing Support [message #197802 is a reply to message #197722] Thu, 19 July 2007 16:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipsenews.richardmiskin.plus.com

The Cantata++ software testing tool works within the CDT and offers feature
beyond a simple test harness; however it is a commercial tool so might not
be what you're after. See http://www.ipl.com/cantata for details.

As a disclaimer; in my day job I'm heavily involved in integrating Cantata++
into Eclipse and the CDT.

Cheers,
Richard


"Scott Meyers" <usenet@aristeia.com> wrote in message
news:f7mogf$ufc$1@build.eclipse.org...
> Now that I've gotten my feet wet with Eclipse and CDT, I'd like to play
> around with a unit testing framework. The information at
> http://cppunit.sourceforge.net/cppunit-wiki/CppUnitWithEclip se suggests
> that CppUnit can be made to work with the CDT, but
> http://www.ifs.hsr.ch/1461 (and ensuing pages) introduces CUTE and
> suggests that it is easier to use than CppUnit.
>
> There's also a review of several unit test framework (from 2004) at
> http://www.gamesfromwithin.com/articles/0412/000061.html ; the review
> makes no mention of Eclipse support.
>
> I'm still quite new to Eclipse/CDT and I've never used any unit testing
> framework, so I'm eager to hear
> pros/cons/recommendations/unrecommendations regarding what I should try.
>
> I'm running Europa on WinXP.
>
> Thanks,
>
> Scott
Re: Unit Testing Support [message #197889 is a reply to message #197780] Fri, 20 July 2007 12:47 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
Fabian Wein wrote:
>> How could Eclipse help me using or writing unit tests?
> Well, unit testing with Java is different due to much more
> powefull "RTTI". I used the JUnit integration of JBuilder quite

more than rtti I would say reflection/introspection

--
Lorenzo Bettini, PhD in Computer Science, DSI, Univ. di Firenze
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net


Re: Unit Testing Support [message #198250 is a reply to message #197722] Wed, 25 July 2007 18:56 Go to previous message
Eclipse UserFriend
Originally posted by: sgilbert.occ.cccd.edu

Hi,
For the last school year, I've used the cxxTest unit testing framework
along with the Eclipse plugin created by the folks at Virginia Tech. You
can download an "all-in-one" version of Eclipse with g++ and cygwin, or
you can simply install their plugin. Here's a link to their page:

http://web-cat.cs.vt.edu/eclipse/

Here's a link to the documentation for using it with Eclipse:

http://web-cat.cs.vt.edu/eclipse/cxxtest/

--Steve
Previous Topic:problem debugging socket using eclipse IDE
Next Topic:CDT 4.0 - Cannot Import as source project
Goto Forum:
  


Current Time: Thu Apr 25 12:56:16 GMT 2024

Powered by FUDForum. Page generated in 0.03213 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top