TAP and TDD information for 'C'

I'm exactly looking for information, for example,

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 Work with personnel for TDD in C (expecting also good aspect :) :)

Finally, for TDD, can cMockery (googles code) be used to test C code (not derived from xUnit Patterns)? as?

added for clarity: TAP is a test protocol for any 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 a good explanation of TAP in

0


source to share


3 answers


For C unit test units, you can refer to this question .

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

You can of course use TAP for TDD, there is no contraindication. If you are already using Perl Test :: More, it is helpful to use the same output format.




Why are you asking if cMockery can be used for TDD? Do you think this is impossible? What for?

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

+1


source


I think you mean this TAP : Tests and Evidence. TAP is a conference where people talk about TDD and how to mathematically prove a program is correct. So the two are not related to each other (a way to write software versus a forum where you can talk about this topic).

TDD is used for both unit tests as for regression testing. See this answer for details .



I haven't used any TDD frameworks for C, but googling for "unit testing c" provides some interesting links.

0


source


I am using CUnitWin32 as my testing framework. The first page highlights the positives

0


source







All Articles