code-coverage

Code coverage on Xamarin Studio

白昼怎懂夜的黑 提交于 2020-01-01 15:32:33
问题 Is there a reliable tool that would help us measure the code coverage of my unit tests? I'm mostly working on Xamarin projects (in Xamarin Studio). For the sake of not getting heaps of -1, I've looked around but couldn't find something mature enough to be reliable. I don't ask the product to be free (but it's of course better if it is ! ) 回答1: There is the code coverage profiler that is in the Mono 4.x line (since a April 7, 2015 commit). It does not help you if you doing Mobile testing, but

What tools are available for calculating code coverage using browser automation tests

拟墨画扇 提交于 2020-01-01 14:38:35
问题 I have a website written in ASP.NET MVC 3. I have put together some browser automation tests that target this website. I want to use this same set of tests to calculate the code coverage of the website code. I know that NCover does this kind of work but based on my knowledge there are two issues. One, NCover gives code coverage figures for both framework's code and my code. Two, it's costly. 回答1: NCover has filters that you can use to ignore the framework code. You could also use OpenCover or

What tools are available for calculating code coverage using browser automation tests

雨燕双飞 提交于 2020-01-01 14:38:04
问题 I have a website written in ASP.NET MVC 3. I have put together some browser automation tests that target this website. I want to use this same set of tests to calculate the code coverage of the website code. I know that NCover does this kind of work but based on my knowledge there are two issues. One, NCover gives code coverage figures for both framework's code and my code. Two, it's costly. 回答1: NCover has filters that you can use to ignore the framework code. You could also use OpenCover or

Android instrumentation tests for library module coverage

落爺英雄遲暮 提交于 2020-01-01 03:09:16
问题 I inherited an android project to setup code coverage for. Not having done much for android and almost as little in gradle, I embarked on a quest to find a helpful tutorial. As surprises go, the first few tutorials were very helpful and I was able to include the jacoco gradle plugin and enable the code coverage. Using jenkins I even generated a coverage report. So far everything looks fine. However, upon setting my eyes on the report, I smelled something fishy. The test vs coverage ratio

Why is a closing brace showing no code coverage?

一个人想着一个人 提交于 2020-01-01 02:29:30
问题 I've got a Swift function for which Xcode is showing 0 passes in code coverage. The line is a closing brace (highlighted in red below). Is this a bug in Xcode? If not, what condition do I need to hit to run that line? I thought I was covering all paths through this method. 回答1: xcode reports include measurements for ending brackets, which is not typically desired. There is nothing you can do in configuration to fix this (as far as I know). (FD I work at Codecov) You can use Codecov, a hosted

Webpack Karma Istanbul Remapping for TypeScript

跟風遠走 提交于 2020-01-01 02:27:07
问题 I'm developing a client-side app and I'm having trouble with creating the right Karma configs. Right now, I have my setup as follows: Webpack: Using ts-loader, compiles TypeScript, assets etc. Karma: Using the webpack plugin, loads the Webpack config (which uses ts-loader), then runs all unit tests with Jasmine + PhantomJS The unit tests all run fine, but I haven't figured out a way to handle the webpack istanbul remapping. Karma-webpacks seems to not be generating source maps to allow the

How do I gather TeamCity code coverage reports from multiple projects into one report?

扶醉桌前 提交于 2019-12-31 21:34:28
问题 We use the build in coverage application in TeamCity 6 (about to upgrade to 7.1) If we wish to see the code coverage (or other metrics) of a particular build it is fine as we can navigate to that build, but it would be great if we could pluck out a few interesting metrics from all/some of the current projects/build configurations and display them all together. For convenience I would expect the new display to be accessible from within TeamCity itself, however if there are solutions that

Jacoco code coverage in Android Studio with flavors

微笑、不失礼 提交于 2019-12-31 12:24:07
问题 I've been trying to run Jacoco test coverage for quiet some time now. I've tried several possible solutions reported in these topics: Android test code coverage with JaCoCo Gradle plugin How do I get a jacoco coverage report using Android gradle plugin 0.10.0 or higher? Im running the tests in a emulatated device using genymotion. Here is what i added to build.gradle: apply plugin: 'jacoco' android{ jacoco { version "0.7.1.201405082137" } buildTypes{ debug{ testCoverageEnabled = true } } }

Viewing Code Coverage Results outside of Visual studio

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-31 09:16:16
问题 I've got some unit tests, and got some code coverage data. Now, I'd like to be able to view that code coverage data outside of visual studio, say in a web browser. But, when I export the code coverage to an xml file, I can't do anything with it. Are there readers out there for this? Do I have to write an xml parser and then display it how I want it (seems like a waste since visual studio already does this.) Seems kinda silly to have to take a screenshot of my code coverage results as my

Eclipse plugin for code coverage [closed]

◇◆丶佛笑我妖孽 提交于 2019-12-31 09:08:04
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I search a code coverage plugin for eclipse. My question is simple: Which plugin do you use with eclipse for code coverage and why ?