Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C programming and TDD

Tags:

c

tdd

Is Test Driven Development limited to OO? Or is it possible/useful to use it in conjunction with a procedural language? I have to start a greater project in C the next few weeks and I'm thinking of ways how to the developing.

like image 561
helpermethod Avatar asked Apr 04 '10 10:04

helpermethod


People also ask

What is TDD and CI?

The unit tests that come out of TDD are also an integral part of the continuous integration/continuous delivery (CI/CD) process. TDD relates specifically to unit tests and continuous integration/continuous delivery pipelines like CircleCI, GoCD, or Travis CI which run all the unit tests at commit time.

What is TDD in coding?

Test-driven development (TDD), also called test-driven design, is a method of implementing software programming that interlaces unit testing, programming and refactoring on source code.

What is TDD in C#?

TDD stands for Test Driven Development, and it's a design process in software development. It relies on the repetition of a very short development cycle, and the requirements are turned into very specific test cases. There are a couple of steps in the TDD process: Write a unit test that fails.


1 Answers

TDD is a design paradigm and as such is not tied to any specific programming paradigm.

Simply put, you write a test for your code before writing your of code.

See this slide deck about TDD with C (the Bowling Game Kata).

like image 102
Oded Avatar answered Sep 18 '22 20:09

Oded