Solved

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

Posted on 2014-10-05
6
638 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Quicksort a dynamic deque 33 79
How can i compile this github project?? 2 99
One named event, multiple event handlers 2 45
learn programming 8 74
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

696 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