472,090 Members | 1,278 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,090 software developers and data experts.

Unit / Coverage testing

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 : oz*****@lpsc.in2p3.fr
Sorry if a FAQ... didn't found frequently given answers !
--
comp.lang.c.moderated - moderation address: cl**@plethora.net
Nov 14 '05 #1
4 2211
O. Zimmermann wrote:
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.


There are a number of unit testing frameworks made for C, but none is
particularly dominant. Here are some links:
http://check.sourceforge.net/
http://cunit.sourceforge.net/
http://sourceforge.net/projects/cut/
http://www.xs4all.nl/~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://cppunit.sourceforge.net/cgi-bin/moin.cgi
http://c2.com/cgi/wiki?CppUnitLite
http://www.oaklib.org/docs/oak/test/marticle/oakut.html
http://codesink.org/cutee_unit_testing.html
--
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: cl**@plethora.net
Nov 14 '05 #2
On 19 Sep 2004 12:36:56 GMT in comp.lang.c.moderated, "O. Zimmermann"
<oz*****@lpsc.in2p3.fr> wrote:
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 ?

Sorry if a FAQ... didn't found frequently given answers !


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

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

Br**********@CSi.com (Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca)
fake address use address above to reply
--
comp.lang.c.moderated - moderation address: cl**@plethora.net
Nov 14 '05 #3
Hi,
..... not less expencive .... but check it out... they might have dropped
their proces ;-)

For a simulary project (critical interfaces, and very large) I have been
looking at Hitex tools - called Tessy. (http://www.hitex.com/download.html)
They the The tool, where you bit-by-bit can build a test system,
completly from scratch. Buttom-up. Both simulated on a PC, and of cause
running in
target/embedded!
You can even easyly attach lots of existing code, you wants to have test.

It's not free ... yarhh not even cheap ... but it's quite impressive.
And I have seen a couple of videos, where the demonstrate their tool
capabilities. Very nice. Even had a personal demo ...
It has a very nice looking interface, and start-up is extreme easy ...
surprisingly! Often you here use quite some time:-(

Ofcause you get coverage in various aspects - statement, condition and path
.... with many variants/settings.

.... just a tip :-)

Rg,
jokaas

FYI; I'm not in any connection or have any relations to this company, or
persons working there.... just a developmer very interested in testing.
"O. Zimmermann" <oz*****@lpsc.in2p3.fr> skrev i en meddelelse
news:cl****************@plethora.net...
Hello,

--
comp.lang.c.moderated - moderation address: cl**@plethora.net
Nov 14 '05 #4
On Sun, 19 Sep 2004 12:36:56 +0000, O. Zimmermann wrote:
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.


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.and.org/vstr/
http://www.and.org/vstr/coverage/

--
James Antill -- ja***@and.org
Need an efficient and powerful string library for C?
http://www.and.org/vstr/
--
comp.lang.c.moderated - moderation address: cl**@plethora.net
Nov 14 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Tom Verbeure | last post: by
3 posts views Thread by Matt Kruse | last post: by
72 posts views Thread by Jacob | last post: by
1 post views Thread by prabhupr | last post: by
6 posts views Thread by Dick | last post: by
176 posts views Thread by nw | last post: by
48 posts views Thread by Ark Khasin | last post: by
5 posts views Thread by Ben Finney | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.