information on TAP and TDD for 'C'

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

Answers


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.


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.


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


Need Your Help

get all the other user names where user=1 exists

mysql sql

I have the following "tblA" and "tblB" table:

How to have different dependencies depending on OS family

windows unix rust dependency-management rust-cargo

I'm writing a cross-platform library that has platform specific dependencies, one for unix-like platforms, and one for windows. These crates only compile on specific platforms, wherefore I can't ju...