![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jul 2005
Posts: 10
Rep Power: 0
![]() |
unit testing in c: which framework?
I've tried CUnit and Check for unit testing in c. CUnit has so far seemed good: it's simple and powerful enough. Check is probably better than CUnit, but I couldn't realy use it, because I'm novice to GNU autotools and the only Check tutorial I found used autotools a lot and figuring out why I got a weird errors following the tutorial became too hard. I switched back to CUnit for now and study autotools more when I'll find time.
Have you used Check, CUnit or other unit testing frameworks? Which one would you choose? I think I've heard/read somewhere, that CUnit could be integrated with eclipse. I've tried to find information about that, but have had no luck. Am I just dreaming about easy c unit testing using eclipse? |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
Join Date: Jun 2005
Location: New Mexico
Posts: 228
Rep Power: 4
![]() |
Dreaming? Probably.
We looked extensively for tools for unit testing and complete QA. In the end we do the following for unit testing: 1. use Clint - zero warnings required. 2. bought and use PolySpace verifier (static code analysis) 3. ported existing code to generate McCabe numbers (cyclomatic indices) and other static measures. 4. Based on the results of the above, we have a defined unit test suite set of procedures we run our code through, we know the expected outputs ahead of time. If the any of the above numbers or performance numbers are not good or there are issues with expected results, we have to back pedal into development. 5. All of the above results a stored in Serena TeamTrack, then passed on to official QA. I have one blob of C code that takes two-three days just to unit test. |
|
|
|
|
|
#3 | |
|
Newbie
Join Date: Jul 2005
Posts: 10
Rep Power: 0
![]() |
You're involved with a lot bigger projects than I am. I'm doing projects with just few thousand lines of code. I guess most of the techniques you're using would be too heavy for small projects like mine. I think I'll start using lint though. I had forgotten it. Thanks for reminding.
Quote:
|
|
|
|
|
|
|
#4 |
|
Hobbyist Programmer
Join Date: Jun 2005
Location: New Mexico
Posts: 228
Rep Power: 4
![]() |
100K lines of C code - several dozen C modules, plus 30 standard database interface C modules.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|