?
Solved

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

Posted on 2014-10-05
6
Medium Priority
?
710 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 2000 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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 2000 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
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 additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

743 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