Thread: Reseouces for doing Test Driven Development in C?

  1. #1
    Registered User
    Join Date
    Nov 2015
    Posts
    21

    Reseouces for doing Test Driven Development in C?

    My brain hasn't caught up yet, I'm short a nap...

    I've been doing Tests in other language and would love to bring that back to my C. Is there a way to do unit tests, or similar, with C? Any links to web pages or books?

    Thanks!

  2. #2
    Registered User
    Join Date
    Sep 2020
    Posts
    39
    This talks might be for you:
    You Can't Unit Test C, Right? - YouTube
    Beginning C - Part 23 Unit Testing a Permutation - YouTube

    I think the idea of TDD is language agnostic, the only differece to other languages is that you don't have classes to test, only functions.

    There are some unit test frameworks for C: CUTest, CUnit and probably more

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,092
    I believe awsdert has tried Check
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Menu driven program
    By kenadams in forum C Programming
    Replies: 9
    Last Post: 10-27-2011, 01:38 AM
  2. Menu driven program
    By paushali in forum C Programming
    Replies: 10
    Last Post: 11-26-2007, 10:52 AM
  3. Menu-Driven Program Help...
    By eun-jin in forum C++ Programming
    Replies: 3
    Last Post: 05-29-2006, 02:58 PM
  4. Test at http://www.artlogic.com/careers/test.html
    By zMan in forum C++ Programming
    Replies: 6
    Last Post: 07-15-2003, 06:11 AM

Tags for this Thread