views:

276

answers:

3

I am precisely looking for the info like ,

TAP is for regression and TDD is for Unit Testing ... or are they mutually exclusive( no need to use both of them ) ?

bonus for suggesting 'good' Unit Test Frame work for TDD in C (expecting to address good aspect as well :) )

finally cMockery (googles code) for Testing C code (not derived from xUnit Patterns) can be used for TDD ? how ?

added for clarity: TAP is test anything protocol , you can find documentation in CPAN (perl archive). libtap is TAP for C. http://www.onlamp.com/pub/a/onlamp/2006/01/19/libtap.html?page=1 gives good explanation of TAP in

A: 

I guess you're referring to this TAP: "Tests and Proofs". TAP is a conference where people talk about TDD and ways to mathematically prove that a program is correct. So the two are not really related (Way to write software vs. a forum where you can talk about this topic).

TDD is used for both unit tests as for regression testing. For details, see this answer.

I haven't used any TDD frameworks for C but googling for "unit testing c" yields a couple of interesting links.

Aaron Digulla
+1  A: 

For unit testing frameworks for C, you can refer to this question.

There is no conflict between regression and unit testing, as the unit tests are used as a safety net to detect undesired changes.

You certainly can use TAP for TDD, there is no contraindication. If you already use Perl Test::More, then sharing the same output format can be helpful.


Why do you ask wheter cMockery can be used for TDD ? DO you think it cannot ? why ?

TDD and unit test frameworks are just means, not ends.

philippe
after a little exercise i am convinced with your suggestion.
FL4SOF
A: 

I using CUnitWin32 as my testing framework. The front-page highlights the positives

Dushara
i am not looking for Win specific soln - rather that is not generally acceptable unless you are very sure. any way will work a little more on the tool suggested. thanks for the info.
FL4SOF