473,397 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 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 2309
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Tom Verbeure | last post by:
Hello All, so I'm now convinced that unit testing is really the way to go and I want to add it to an existing project. The first thing that I find out, is that, well, it's hard work. Harder than...
3
by: Matt Kruse | last post by:
Does anyone actively use JSUnit < http://www.edwardh.com/jsunit/ > for unit testing their javascript code? For logical functions, I imagine it could be very useful. However, I'm wondering how...
72
by: Jacob | last post by:
I have compiled a set og unit testing recommendations based on my own experience on the concept. Feedback and suggestions for improvements are appreciated: ...
1
by: prabhupr | last post by:
Hi All Using nUnit I can write Unit Test on my middle-tier code. Also, its not worth spending time on writing Unit Test on PRIVATE methods (its debatable topic:)) My question was, is there...
6
by: Dick | last post by:
I’d appreciate some advice regarding unit tests. My questions are general in nature but (as usual) best conveyed via a (simplified) example: I have a table that contains two columns – the...
176
by: nw | last post by:
Hi, I previously asked for suggestions on teaching testing in C++. Based on some of the replies I received I decided that best way to proceed would be to teach the students how they might write...
48
by: Ark Khasin | last post by:
Unit testing is an integral component of both "formal" and "agile" models of development. Alas, it involves a significant amount of tedious labor. There are test automation tools out there but...
5
by: Ben Finney | last post by:
Howdy all, PEP 299 <URL:http://www.python.org/dev/peps/pep-0299details an enhancement for entry points to Python programs: a module attribute (named '__main__') that will be automatically called...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.