code-coverage

Code Coverage possible for TFS Build 2008 building Visual Studio 2010 Project?

We have moved to Visual Studio 2010 but our TFS folks are not ready yet. After some work, we can get the build to work, but we don't get code coverage. We are running using the MSTest test runner. Does anyone know any tricks to get TFS to report code coverage using Visual Studio 2010 on a build server that has a TFS 2008 Build agent? ...

Is there a tool to compare code modifications based on the call stack?

I wonder if there is a code comparison tool that take into account the call hierarchy of your code. Something like this: you provide the two projects to compare and which method and the file containing it to use as the head of the hierarchy. The tool would extract all methods potentially called by this method (polymorphism and dynamic ca...

Running code coverage with Gallio in VS 2010 x64 machine

The target framework is .NET 4.0. My solution is a ASP.NET MVC2 project. I'm using the latest Gallio/mbunit build 3.2.603. When trying to run code coverage on some mbunit tests, I get no results : Empty results generated: none of the instrumented binary was used. Look at test run details for any instrumentation problems. The tested mbun...

Measuring integration test coverage with Maven

The followings are ok now: I have a multi-module project in maven with EJB and WAR projects I want to use JMeter (and later selenium) for integration testing. I can run both from Maven. The JMeter plan is ready, I run it with Chronos maven plugin. My application is a JEE application, so I want to test the code with the planned producti...

Using Python code coverage tool for understanding and pruning back source code of a large library

My project targets a low-cost and low-resource embedded device. I am dependent on a relatively large and sprawling Python code base, of which my use of its APIs is quite specific. I am keen to prune the code of this library back to its bare minimum, by executing my test suite within a coverage tools like Ned Batchelder's coverage or fi...

Code coverage tools for C

I am using CuTest for unit testing and would like to get information about code coverage. Are there any code coverage tools available for C? Thanks ...

code coverage in visual studio 2008 pro

I am writing some unit tests using visual studio 2008 professional edition. I learned that visual studio has a built in code coverage utility however it seems that this feature is not available with my version of visual studio. Do someone know which versions of visual studio 2008 include the code coverage utility ? Tzachi ...

Jython test coverage

I'm trying to use Jython instead of Python for a project (want jdbc driver for a sort of rare database). Everything is working OK so far, but I can't find any good tools for code coverage. Does anyone have a solution to this? The googling I've done seems to indicate that jython is missing some things that code coverage tools need. http:...

Code coverage tools in Java

Hi guys I would like to hear what free coverage tool you folks are using that can be used as plugin in eclipse. There are bunch of threads on this topic, but some of them are not the most updated. AFAIK, these 3 are the most popular ones: EclEmma - seems like an updated great option EMMA - the last time site was updated was on (2006)...

combination of coverage and profiler?

I really like the python coverage module: http://nedbatchelder.com/code/coverage/ and the HTML pages it generates. Is there a combination of this and profiling so that one could see a unified HTML report of coverage+profiling. Thanks in advance. ...

Any Free Integrated Code Coverage Tools for VS2010 (Professional Edition)

Does anyone know of any free (critical point I'm afraid) code coverage tools for Visual Studio 2010 Professional edition. I know there are commercial offerings such as NCover and DotCover, but due to budget considerations these can't be considered. For similar reasons, upgrading to versions of VS that come with code coverage built in al...

Open source code coverage tool for both managed and unmanaged code?

Hi, I need to generate code coverage metrics for a suite of nunit tests. The tests call functions in a managed dll which in turn uses PInvoke to call unmanaged dlls. I understand that VSTS can be used to generate code coverage metrics in this scenario for both managed and unmanaged code, apart from that are there any open source tools t...

Cannot find any coverage data (.coverage or .coveragexml) files. Check test run details for possible errors.

I am using Visual Studio Ultimate and I cannot get code coverage data. All of my unit tests pass, and I edited the Local.testsettings file to enable code coverage and configured it to reference the dll of my project. Also the active test setting is set to Local.testsettings and not TracAndTestImpact.testsettings. ...

Cobertura with Ant Script : xml/html coverage report always show 0% coverage everywhere

I tried to get Cobertura running inside my ant script. All is successfull (source code building, junit tests, cobertura reports (xml / html); but in html reports, the code coverage is always at 0% ... Ant Script : make-instrument <!-- Make instrument for Cobertura engine --> <target name="make-instrument"> <!-- Remove the coverag...

How to produce a coverage report from a visual studio .coverage file that is similar to the one produced by emma?

Hi, Visual Studio code coverage produces a .coverage binary file which can be converted to xml. Is there an xsl transform available that can convert that xml to a formatted report similar to the one produced by emma coverage tool for java. Any other transformations that would produce a meaningful report are also welcome. ...

Grails cobertura plugin is doing code coverage on BuildConfig.groovy

Grails coberatura plugin is doing code coverage on BuildConfig.groovy. I have tried all these configurations on BuildConfiguration to exclude BuildConfiguration from code coverage have tried all these. coverage { exclusions = [ '*/BuildConfig*', 'BuildConfig*', "BuildConfig*", 'BuildConfig', '...

Determine which Unit Tests to Run Based on Diffs

Does anyone know of a tool that can help determine which unit tests should be run based on the diffs from a commit? For example, assume a developer commits something that only changes one line of code. Now, assume that I have 1000 unit tests, with code coverage data for each unit test (or maybe just for each test suite). It is unlikel...

How to prevent functions from being excluded from coverage profiling?

We're using AQTime's coverage profiler to check coverage results for unit tests. It seems to generally work okay, but has a nasty habit of overestimating coverage because some functions don't appear at all. I think this is because the linker has stripped them because they're not called, but obviously it is not ideal because I'd like them...