Solved

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

Posted on 2014-10-05
6
619 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 29

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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
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…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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…

791 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