Solved

Tools for measure code coverage (C0, C1) of unit testing for C++

Posted on 2014-10-05
6
576 Views
Last Modified: 2014-10-22
Dear Experts,

Please help me to find best tools for measure code coverage (C0, C1) automatically when I run UT test script.
Or any integrated tools for unit test tool to measure code coverage.
Language: C++
I'd refer free tools.

P/s: Now, I'm using CppUnit to execute my unit test scripts.

Regards.
0
Comment
Question by:FSOFT-SA
6 Comments
 
LVL 12

Assisted Solution

by:trinitrotoluene
trinitrotoluene earned 500 total points
ID: 40363006
I've used LDRA and AMC's Codetest but both these are paid tools.

Here is a link which does a review of some free tools

http://open-tube.com/10-code-coverage-tools-c-c/
0
 
LVL 32

Expert Comment

by:phoffric
ID: 40363069
What OS and compiler are you using?
0
 
LVL 28

Expert Comment

by:pepr
ID: 40363082
Off Topic: If you are using C++11, then there is much better tool for unit testing than CppUnit is.
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

by:FSOFT-SA
ID: 40363329
@phoffric: We're using Windows & Visual studio 2008.
0
 
LVL 32

Expert Comment

by:phoffric
ID: 40365753
Sorry, I don't have Visual studio 2008. I do see that code coverage is discussed on MSDN for this product.
0
 
LVL 12

Accepted Solution

by:
trinitrotoluene earned 500 total points
ID: 40372145
FSOFT-SA:
so I did some further research and am down to a couple

Have you looked at Bulls Eye coverage? Its also mentioned in  my last post.
http://www.bullseye.com/
Its not free but you might want to evaluate it first.

And then ofcourse there's what Visual Studio provides. Its free but I was more comfortable with Bulls Eye
http://blogs.msdn.com/b/ms_joc/archive/2005/04/08/406608.aspx
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now