Thread: using cppunit for C programming

  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    17

    using cppunit for C programming

    Dear All,
    Can i use CPPUNIT library for my C programming code unit testing?
    Please suggest me steps if some body used already?

    Regards,
    Siddu

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Probably, if you are careful, but why not just use a C specific unit test framework?
    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

  3. #3
    Registered User
    Join Date
    Mar 2010
    Posts
    17
    Quote Originally Posted by laserlight View Post
    Probably, if you are careful, but why not just use a C specific unit test framework?
    can you suggest me some good tools.
    i am using MSVS.
    I have very limited time for my developement of project.
    hence want to know some easy tool.

    Regards,
    SIddu

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by Siddu_Kyocera
    can you suggest me some good tools.
    A quick search brings up CUnit, but I will not give you any opinion on it since I have not tried it.
    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

  5. #5
    Registered User
    Join Date
    Mar 2010
    Posts
    17
    Quote Originally Posted by laserlight View Post
    A quick search brings up CUnit, but I will not give you any opinion on it since I have not tried it.
    How about CuTest?
    In en.wikipedia.org they wrote about Cutest that it is Simple, straightforward, fast. Single .c file. Used in the Apache Portable Runtime Library.

    I have to test lot of pointers concepts and Brew Mobile Plotform API's calls using CuTest.

    Regards,
    Siddu

  6. #6
    Registered User
    Join Date
    Mar 2010
    Posts
    17
    Any body know how to use CUnit?

    Regards,
    Siddu

  7. #7
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by Siddu_Kyocera
    How about CuTest?
    Try it and see how you like it.

    Quote Originally Posted by Siddu_Kyocera
    Any body know how to use CUnit?
    Yes, and they wrote a user guide.
    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

  8. #8
    Registered User
    Join Date
    Mar 2010
    Posts
    17
    Quote Originally Posted by laserlight View Post
    Try it and see how you like it.


    Yes, and they wrote a user guide.
    Hi Laser,
    Thanks for your responce.
    I gone through the user guide but they were not explained how to intigrate the library to my
    project. I am using Microsoft visual studio.
    if you know how to intigrate? Can you plese let me know?

    Thanks in advance for your help.

    Regards,
    Siddu

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why does CppUnit give me seg faults?
    By cpjust in forum C++ Programming
    Replies: 3
    Last Post: 05-20-2010, 03:00 AM
  2. DIfference between , and ;
    By rocketman03 in forum C++ Programming
    Replies: 6
    Last Post: 10-21-2009, 09:46 AM
  3. Resource ICONs
    By gbaker in forum Windows Programming
    Replies: 4
    Last Post: 12-15-2003, 07:18 AM