|
Do your unit tests constitute 100% code coverage? Yes or no, and why or why not.
Started by Chris on
, 13 posts
by 13 people.
Answer Snippets (Read the full thread at stackoverflow):
No, because there is a practical reasons :
It is really expensive to reach... .
It works by searching for hard-to-find edge cases.
Most developers who write code coverage.
It is seldom practical to get 100% code coverage in a non-trivial system.
|
|
Is there a tool for code coverage for C language.
I know there are many. But I wanted something like perl Devel::cover. Where I get:
Line coverage Branch Coverage Condition coverage Subroutine coverage And all this in a nice HTML output.
Is there anything...
Started by someguy on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
XML report on what's covered; you can manufacture whatever HTML... .
Nice UI display of code coverage on lines.
GCOV is the easiest to use - I wrote Coverage Tool .
coverage, but not branch, function coverage (as far as I know).
|
|
I know Eclipse + PyDev has an option Run As => 3 Python Coverage . But all it reports is:
Ran 6 tests in 0.001s
OK
And it says nothing about code coverage. How to get a code coverage report in Pydev?
Started by Jader Dias on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Run a file with "Python Coverage" Window > Show View > Code Coverage Results View Select the directory in which the executed file.
And-eclipse/
It uses nosetests with the –with-coverage option.
|
Ask your Facebook Friends
|
Is there any tool/library that calculate percent of "condition/decision coverage" of python code. I found only coverage.py but it calculates only percent of "statement coverage".
Started by Mykola Kharechko on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
The very same maintainer of ....
I don't know of any branch coverage tools for Python,
raise SomeException(x)
Branch coverage for this needs to check that SomeException(x) was fully.
With unit tests that will show you the coverage.
|
|
Are there any good (and preferably free) code coverage tools out there for Perl?
Started by Kurt W. Leucht on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
As noted the call to WriteMakefile():
eval ....
Target:
perl Build.PL ./Build testcover
That runs the whole test suite, and makes a combined coverage report in nice HTML, where you can browser through your modules and watch their coverage.
|
|
How do I setup an Ant task to generate Emma code coverage reports?
Started by Rob Spieldenner on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Dir="${coverage}"/> <emma> <instr instrpath="${target}" destdir="${instr.target}" metadatafile="${coverage}/metadata.emma" mode="copy"> <filter excludes="*Test*"/> </instr> with the proper VM arguments like:
<....
|
|
Hello,
I am relatively new to unit testing and was attempting to add some code coverage to my unit tests. Yet i can't find the code coverage tab in Visual Studio 2008 in the localtestrun.testrunconfig, is there any missing Add-in or tool?
Thanks, DMS
Started by DMS on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
As I understand "Code Coverage" is available only in "bigger" editions of Visual Studio.
Then perform a run and then on the test run results you can choose to display code coverage.
Code coverage.
|
|
Are there any free code coverage tools for native (not managed) code? For either Windows or Linux platforms?
Started by Ferruccio on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
EMMA is a free Java code coverage tool, and there's NCover for .NET
gcov from the GNU tools.
|
|
AFAIK, there isn't a free code coverage tool for C++.
Started by all2one on
, 6 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
It works....
The gnu-compiler is part of that.
You just have to install the "unix like environment" called cygwin .
Btw - since I've been asked in the comments: Yes, gcov it's also availabe for windows .
Gcov from the gnu-compiler works very well for me...
|
|
I regularly achieve 100% coverage of libraries using TDD, but not always, and there always seem to be parts of applications left over that are untested and uncovered.
Then there are the cases when you start with legacy code that has very few tests and...
Started by quamrana on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Shows per-statement coverage....
I should note that this is more applicable to increasing the coverage.
This increased coverage and increased maintainability.
Of code duplication or even code that I couldn't get to execute, I deleted it .
|