473,378 Members | 1,426 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

C++ test framework for TDD

Hello alltogether,

I'm new to this group, so please tell me, if there is a better place to ask ...

I'm also new to the TDD (test driven development) aproach. I just started to
learn about the development process. As test framework I heard about CppUnit.

Does anyone here do TDD with C++ as programming language? What test frameworks
do you use? What are your experiences?

Thanks in forward for all hints and comments

Regards
Alexander
Nov 22 '05 #1
3 3243
Alexander Eisenhuth wrote:
Hello alltogether,

I'm new to this group, so please tell me, if there is a better place to
ask ...

I'm also new to the TDD (test driven development) aproach. I just
started to learn about the development process. As test framework I
heard about CppUnit.

Does anyone here do TDD with C++ as programming language? What test
frameworks do you use? What are your experiences?

Thanks in forward for all hints and comments

Regards
Alexander


Check out CppUnit or unit++. CppUnit is a direkt port from JUnit to C++,
while unit++ claims to be more "C++-like".
However, I found the unit++ documentation to be lacking, so I use
CppUnit and I'm happy with it (especially when you're also using JUnit
for Java development).

Regards,
Matthias
Nov 22 '05 #2
boost::test is a fully featured and yet lightweight framework easily
adapted to your development environment. in my experience test
framworks never quite do what you need out-of-the-box, which is why i
like the extensibility in particular.

additionally boost::test easily scales and feels comfortable for small
pet projects as well as the large scale flavour...

see http://boost.org/libs/test/doc/index.html

-- peter

Nov 22 '05 #3
"peter steiner" <pn*******@gmail.com> writes:
boost::test is a fully featured and yet lightweight framework easily
adapted to your development environment. in my experience test
framworks never quite do what you need out-of-the-box, which is why i
like the extensibility in particular.

additionally boost::test easily scales and feels comfortable for small
pet projects as well as the large scale flavour...

see http://boost.org/libs/test/doc/index.html


Further comment - I've implemented a unit test framework for my
company based completely on the Boost test library, and I'm very
happy how it turned out. It's not perfect, but it's a good fraction
of the way to perfect. :-)
------------------------------------------------------------------------
Dave Steffen, Ph.D. On a paper submitted by a physicist colleague:
Software Engineer IV
Numerica Corporation "This isn't right. This isn't even wrong."
ph (970) 419-8343 x27
fax (970) 223-6797 -- Wolfgang Pauli
dg*******@numerica.us
______________________
Numerica Disclaimer:
This message and any attachments are intended only for the individual
or entity to which the message is addressed. It is proprietary and
may contain privileged information. If you are neither the intended
recipient nor the agent responsible for delivering the message to the
intended recipient, you are hereby notified that any review,
retransmission, dissemination, or taking of any action in reliance
upon, the information in this communication is strictly prohibited,
and may be unlawful. If you feel you have received this communication
in error, please notify us immediately by returning this Email to the
sender and deleting it from your computer.
Nov 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sven Hilmahr | last post by:
Hello, I tried to do a Python 2.3.4 framework installation on my Mac OS X 10.3.5. I configured as described in /Mac/OSX/ReadMe: ../configure --enable-framework But on make test, one test...
9
by: Michael A. Covington | last post by:
What is the best way to test whether .NET 1.1 is installed on someone's machine? I'd like to give him a small program to run to test this, and based on the answer, he'll download either the big...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
4
by: sylcheung | last post by:
Hi, Does anyone has any suggestion for Unit Test Framework for c++ program? Is there any framework which let me use some script languages (e.g. python) to write the test cases to test c++...
5
by: VvanN | last post by:
hi, fellows I'd like to intruduce a new unit test framework for C++ freely available at: http://unit--.sourceforge.net/ It does not need bothering test registration, here is an example ...
0
by: Chris Davoli | last post by:
Test Server Environment is: Win server 2003, SP1, Installed both Framework 1.1 and Framework 2.0. I've got a 2005 web site (converted from VS2003). When I deploy to test server it gives me the...
0
by: Orbit | last post by:
Hi, I hope someone could help me. I have a simple web service that I developed on my laptop that resides within a large web application. It queries Northwind & presents the data in a grid in the...
176
by: nw | last post by:
Hi, I previously asked for suggestions on teaching testing in C++. Based on some of the replies I received I decided that best way to proceed would be to teach the students how they might write...
2
by: =?Utf-8?B?QXJtaW4gR2FsbGlrZXI=?= | last post by:
Hi I've got an unexpected error in a unit test. I want to test a activity from Windows Workflow Foundation (WF). First, I executed the test outside of the activity just in the test-init...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.