By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,897 Members | 1,955 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,897 IT Pros & Developers. It's quick & easy.

automatic test generation

P: n/a
Hi,

Anyone out there that knows of a automatic test generation tool for cpp?
Another requirement is that the test results should be presented in xml.

All hints appreciated.

cheers,

//mikael
Jun 14 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Petterson Mikael wrote:
Hi,

Anyone out there that knows of a automatic test generation tool for cpp?
Another requirement is that the test results should be presented in xml.

All hints appreciated.

Write the tests before you write the code!

An automatic test generation tool would be worse than useless.

--
Ian Collins.
Jun 14 '06 #2

P: n/a

"Ian Collins" <ia******@hotmail.com> skrev i meddelandet
news:4f*************@individual.net...
Petterson Mikael wrote:
Hi,

Anyone out there that knows of a automatic test generation tool for
cpp?
Another requirement is that the test results should be presented in
xml.

All hints appreciated.

Write the tests before you write the code!

An automatic test generation tool would be worse than useless.


How do you mean?

I write down the specifications, and the tool produces a complete set
of tests. Would be wonderful! :-)
Bo Persson
Jun 14 '06 #3

P: n/a
Bo Persson wrote:
"Ian Collins" <ia******@hotmail.com> skrev i meddelandet
news:4f*************@individual.net...
Petterson Mikael wrote:
Hi,

Anyone out there that knows of a automatic test generation tool for
cpp?
Another requirement is that the test results should be presented in
xml.

All hints appreciated.

Write the tests before you write the code!

An automatic test generation tool would be worse than useless.

How do you mean?

You'd get a false sense of security.
I write down the specifications, and the tool produces a complete set
of tests. Would be wonderful! :-)

Why not just write the tests AS the specification?

--
Ian Collins.
Jun 14 '06 #4

P: n/a
Bo Persson wrote:
All hints appreciated.
Write the tests before you write the code!

An automatic test generation tool would be worse than useless.


How do you mean?


If you write the code first, you will spend lots of time debugging, and your
code might not be perfectly designed for automated tests. This is two
different kinds of waste.

You are asking how to make up for that waste by automating the test
generation process.

If, instead, you fix both wastes at the same time, you can develop pristine
tests at the same time as you avoid debugging and design for testing. So
write a failing test case, then write code to pass the test. Alternate that
in little cycles, with refactoring, and you will design BY testing. And new
tests will be very easy to add.
I write down the specifications, and the tool produces a complete set of
tests. Would be wonderful! :-)


Right. That's a major topic of research these days, because the more
specify-able your program is, the easier it is to grow features.

Peek at http://fitnesse.org

--
Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!
Jun 14 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.