By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,068 Members | 830 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,068 IT Pros & Developers. It's quick & easy.

Unit / Coverage testing

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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.