Unit / Coverage testing

O

O. Zimmermann

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 : (e-mail address removed)2p3.fr


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

Derrick Coetzee

O. Zimmermann said:
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
 
B

Brian Inglis

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.
 
J

JohnK

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.
 
J

James Antill

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/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,146
Messages
2,570,832
Members
47,374
Latest member
EmeliaBryc

Latest Threads

Top