Unit / Coverage testing

Unit / Coverage testing

Post by O. Zimmerm » Mon, 20 Sep 2004 21:36:56


Hello,


I am looking for a tool to process torough UNIT and COVERAGE testing over 60 and
more functions of a "critical" embedded application written in C.

I found IPL's Cantata++ but we don't seem to really need all the power of this
software. I think some other tool out there could provide me with the basic
testing I want with less expense. Ease of use (ie. time) is important.

Any advices ?

oz
Please copy answers to : XXXX@XXXXX.COM


Sorry if a FAQ... didn't found frequently given answers !
--
comp.lang.c.moderated - moderation address: XXXX@XXXXX.COM
 
 
 

Unit / Coverage testing

Post by Derrick Co » Thu, 23 Sep 2004 14:54:16


There are a number of unit testing frameworks made for C, but none is
particularly *** . Here are some links:
http://www.yqcomputer.com/
http://www.yqcomputer.com/
http://www.yqcomputer.com/
http://www.yqcomputer.com/ ~rfsber/RT/robotester.html

Alternatively, you can often use a C++ unit test framework and link it
together with your C source files. This may not be applicable in your
situation, but if it is, consider some of these:

http://www.yqcomputer.com/
http://www.yqcomputer.com/
http://www.yqcomputer.com/
http://www.yqcomputer.com/
--
Derrick Coetzee
I grant this newsgroup posting into the public domain. I disclaim all
express or implied warranty and all liability. I am not a professional.
--
comp.lang.c.moderated - moderation address: XXXX@XXXXX.COM

 
 
 

Unit / Coverage testing

Post by Brian Ingl » Thu, 23 Sep 2004 14:55:39

On 19 Sep 2004 12:36:56 GMT in comp.lang.c.moderated, "O. Zimmermann"



If you're using gcc, gcov allows you to analyze test coverage.

--
Thanks. Take care, Brian Inglis Calgary, Alberta, Canada

XXXX@XXXXX.COM (Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca)
fake address use address above to reply
--
comp.lang.c.moderated - moderation address: XXXX@XXXXX.COM
 
 
 

Unit / Coverage testing

Post by James Anti » Thu, 30 Sep 2004 21:27:36


Unit testing in C basically just means writing unit tests, there is very
little framework code required. Finding the code covered by the testing
can be done using gcc and the "-fprofile-arcs -ftest-coverage" options.
For instance see Vstr for scripts to help with doing this and generating
the reports...

http://www.yqcomputer.com/
http://www.yqcomputer.com/

--
James Antill -- XXXX@XXXXX.COM
Need an efficient and powerful string library for C?
http://www.yqcomputer.com/
--
comp.lang.c.moderated - moderation address: XXXX@XXXXX.COM