473,672 Members | 2,577 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.in 2p3.fr
Sorry if a FAQ... didn't found frequently given answers !
--
comp.lang.c.mod erated - moderation address: cl**@plethora.n et
Nov 14 '05 #1
4 2326
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.mod erated - moderation address: cl**@plethora.n et
Nov 14 '05 #2
On 19 Sep 2004 12:36:56 GMT in comp.lang.c.mod erated, "O. Zimmermann"
<oz*****@lpsc.i n2p3.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**********@CS i.com (Brian[dot]Inglis{at}Syste maticSW[dot]ab[dot]ca)
fake address use address above to reply
--
comp.lang.c.mod erated - moderation address: cl**@plethora.n et
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.i n2p3.fr> skrev i en meddelelse
news:cl******** ********@pletho ra.net...
Hello,

--
comp.lang.c.mod erated - moderation address: cl**@plethora.n et
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.mod erated - moderation address: cl**@plethora.n et
Nov 14 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
3681
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 writing the real functional code. My application manipulates graphs. I first write the skeleton in Python, then convert it to C++ for high performance (some graphs can have millions of nodes.)
3
2235
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 well it would work for other things which are browser-dependent, like DHTML. Any personal success or horror stories? -- Matt Kruse
72
5232
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: http://geosoft.no/development/unittesting.html Thanks.
1
1152
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 any easy way to identify / validate if nUnit has been written for each PUBLIC method. I'm looking for an easy report that list all methods for which there is no nUnit written
6
1588
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 name of a PC and the date/time that an event took place. I have a stored procedure that accepts two date arguments – a start date/time and an end date/time. It returns a list of PC’s and the number of times the event took place within the...
176
8341
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 their own unit test framework, and then in a lab session see if I can get them to write their own. To give them an example I've created the following UTF class (with a simple test program following). I would welcome and suggestions on how anybody...
48
2491
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 from what limited exposure I've had, they are pricey, reasonably buggy, and require compiler/target adaptation. Out of my frustration with two out of two of them came my own. Its instrumentation approach is based solely on profound abuse of the C
5
2241
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 if the module is run as a program. The PEP has status "Rejected", citing backward-compatibility issues, and Guido's pronouncement that "It's not worth the change (in docs, user habits, etc.) and there's nothing particularly broken."
0
8931
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8828
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8608
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8680
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5705
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4418
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2063
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1816
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.