code-coverage

Visual Studio 2010 Native C++ Code Coverage Coloring Not Working

让人想犯罪 __ 提交于 2020-01-04 15:53:49
问题 I was using Visual Studio 2010 ultimate edition without any service pack to do code coverage test for my native c++ project but Code Coverage Coloring seems not working for me. Are my steps correct? 1) I used the two command line tools vsinstr.exe and vsperfmon.exe to perform instrumentation and code coverage collection on a separate machine without my project directory/source code. I just copied my compiled native .exe file to there. The reason I need to use a separate machine is that my

JS Code coverage

可紊 提交于 2020-01-04 15:26:05
问题 I am a newbie for the testing scenario. I have one question wanna ask your help. For example, if I have one web application which implemented from HTML, JS and CSS and calls other APIs. While this web application is being tested, how to measure "code coverage" in an HTML/JS/CSS browser application IN THE BROWSER when doing functional testing? Any Javascript plugins to see how much of the client code was running during the tests? Thanks in advance for your suggestion. 回答1: I'm not entirely

JS Code coverage

旧时模样 提交于 2020-01-04 15:25:27
问题 I am a newbie for the testing scenario. I have one question wanna ask your help. For example, if I have one web application which implemented from HTML, JS and CSS and calls other APIs. While this web application is being tested, how to measure "code coverage" in an HTML/JS/CSS browser application IN THE BROWSER when doing functional testing? Any Javascript plugins to see how much of the client code was running during the tests? Thanks in advance for your suggestion. 回答1: I'm not entirely

How to activate GitLab Pages in an existing project?

ε祈祈猫儿з 提交于 2020-01-04 04:32:06
问题 I want to publish my code coverage reports for my Java project that is already on GitLab. I generate code coverage reports with JaCoCo in a folder located in app/target/site/jacoco/ . I saw I had to activate GitLab Pages. But this link on the GitLab documentation say I have to create a new project. My Java project is already in a GitLab Project and I don't know how to do in that case. 回答1: You do not have to create a new project if you already got one The GitLab documentation is a little

PHP_CodeCoverage_Filter::getInstance() Error running phpunit

爱⌒轻易说出口 提交于 2020-01-03 16:51:06
问题 I have installed phpunit in my ubuntu 11.10 having php version 5.2.14. But when I run my test module it is throwing error, PHP Fatal error: Call to undefined method PHP_CodeCoverage_Filter::getInstance() in /usr/share/php/PHPUnit/Autoload.php on line 64 I followed the steps mention in this stack question but still no luck. Call to undefined method PHP_CodeCoverage_Filter::getInstance() 回答1: Following steps solved my problem. sudo apt-get remove phpunit sudo pear channel-discover pear.phpunit

How to run an NUnit test in VisualStudio with OpenCover code coverage?

泪湿孤枕 提交于 2020-01-03 11:34:12
问题 I am new to NUnit testing. I was able to write test cases for my functions, now what I want is to know the code coverage for my test cases. For that I use OpenCover. But I don't know how to install and get OpenCover to work with Visual Studio 2015, can anyone guide me to install OpenCover for Visual Studio and provide help to see the code coverage in Visual Studio? 回答1: The best solution I found for code coverage in Visual Studio is as follows: Open Visual Studio 2017 Go to Tools->Extensions

How to run an NUnit test in VisualStudio with OpenCover code coverage?

 ̄綄美尐妖づ 提交于 2020-01-03 11:34:07
问题 I am new to NUnit testing. I was able to write test cases for my functions, now what I want is to know the code coverage for my test cases. For that I use OpenCover. But I don't know how to install and get OpenCover to work with Visual Studio 2015, can anyone guide me to install OpenCover for Visual Studio and provide help to see the code coverage in Visual Studio? 回答1: The best solution I found for code coverage in Visual Studio is as follows: Open Visual Studio 2017 Go to Tools->Extensions

How do I exclude service references from code coverage using the runsettings file in Visual Studio 2012?

人盡茶涼 提交于 2020-01-02 00:58:31
问题 I'm using a custom runsettings file to control what projects are inspected for code coverage. I used the default template provided by Microsoft and have so far been able to exclude the items I want with no issues. My next action is to exclude from code coverage the auto-generated web proxy classes that are created by Visual Studio when you add a service reference. This seemed something that should work with the default runsettings template since it has a section that looks like this:

Ruby test coverage tool

眉间皱痕 提交于 2020-01-02 00:16:09
问题 I need a tool which measures test coverage under Ruby. I tried rcov, but couldn't install it under Windows, Cygwin, or Ubuntu. Which programs (not necessarily free) calculate the branch and/or line coverage of tests in Ruby and work with Ruby on Rails? 回答1: Simplecov. Rcov doesn't work so well under Ruby 1.9.*, but simplecov does. 回答2: You also have deep-cover which aims to be more complete than the mentioned examples. From the Readme: Deep Cover aims to be the best coverage tool for Ruby

Sonarqube default coverage to 0 from Karma Coverage LCOV file with absolute pathjs

我们两清 提交于 2020-01-01 19:30:25
问题 Sonar does not retrieve the coverage information for my project when paths are absolute in my lcov file. For the file: TN: SF:/mnt/vg01-data01/jenkins/<jenkins.myhost.com>/jenkins_home/workspace/<job1>/src/app.js FN:,(anonymous_0) FN:,(anonymous_1) FNF:2 FNH:2 FNDA:1,(anonymous_0) FNDA:2,(anonymous_1) DA:3,1 DA:4,1 DA:6,1 DA:7,1 DA:8,1 DA:9,1 DA:11,1 DA:18,1 DA:19,1 DA:22,2 DA:27,1 LF:11 LH:11 BRF:0 BRH:0 end_of_record .... I get the following warnings: ... 05:06:27.565 INFO: Analysing [/srv