code-coverage

Bullseye for EDK Based Application

心已入冬 提交于 2019-12-25 06:38:36
问题 Is there any way to integrate EDK2 based application to come into Bulls Eye Code Coverage tool? The executable will be having .efi extension, and it open's only in EFI shell. I believe, i also need to develop an driver to capture the coverage data into external disk for analysis, as the application will be valid only in the EFI Shell(BIOS). So, does anyone have any idea, on how it can be done, for overall EFI Applications? Thanks, Pramod 回答1: These are the steps I took to integrate Bullseye

Code Coverage on Java Remote VM

旧巷老猫 提交于 2019-12-25 05:05:49
问题 How can I get (if it is even possible) the code coverage report running on a remote JAVA VM in Eclipse So I have a Unit test Suite running over the clients (for simplicity VM1) of the service layer (VM2). (The project was already setup this way and it is too deep in to re-architect that part) Debug works if i add a port listener as follows: <jvmFlag>-Xdebug</jvmFlag> <jvmFlag>-Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y</jvmFlag> So was hoping to do something similar for a

Does Devel::Cover work under mod_perl2 on Perl 5.10 for Windows?

大兔子大兔子 提交于 2019-12-25 00:26:08
问题 The mod_perl2 and Perl 5.10 two are playing nicely together, but I can't seem to find any positive information about Devel::Cover working with mod_perl2 under Win32. I'm currently using ActiveState's Perl 5.10, but I would be open to switching to Strawberry Perl if it meant this combination could work. Also, Devel::Cover PPDs don't seem to be available for Perl 5.10 from ActiveState, Bribes, UWinnipeg, or Trouchelle, so if you have been able to get it to work, what steps did you go through to

how do I make jacoco add the tests files themselves to the coverage report

时间秒杀一切 提交于 2019-12-24 19:07:37
问题 In my sample maven project, I have this jacoco configuration: <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.8.4</version> <executions> <execution> <id>jacoco-initialize</id> <goals> <goal>prepare-agent</goal> </goals> </execution> <execution> <id>jacoco-report</id> <phase>test</phase> <goals> <goal>report</goal> </goals> </execution> </executions> </plugin> which I got from https://automationrhapsody.com/automated-code-coverage-of-unit-tests

SQL Server: How to find what lines are executed

梦想的初衷 提交于 2019-12-24 18:47:15
问题 I am working on a mutation test framework for SQL Server, for this I need to be able to calculate what lines of a stored procedure, function or trigger are executed when I execute a certain stored procedure. The difficult part is that I want to know the exact lines or statements being executed from the stored procedure I call. With a query like this I can see what stored procedures/triggers/functions are being executed, since I know when I call the stored procedure I can use the time to see

SonarQube - unity tests code coverage on new code not working

点点圈 提交于 2019-12-24 16:13:32
问题 I am trying to do Sonar analysis with the unit tests code coverage on new code. When I do code coverage analysis with cobertura and do Sonar analysis the overall code coverage of the code is displayed correctly, however the code coverage of new code is not displayed. Settings: scm = Git sonar.scm.disabled = false I did following checked out earlier version of source code set Sonar project version to 1.0 created Cobertura report (xml file) executed analysis and checked that the analysis was

How do I write a unit test for OSError?

大憨熊 提交于 2019-12-24 14:25:15
问题 I have the following python code which I want to test: def find_or_make_logfolder(self): if not path.isdir(self.logfolder): try: makedirs(self.logfolder) except OSError: if not path.isdir(self.logfolder): raise I want to do something like the following in my unittest. def test_find_or_make_logfolder_pre_existing(self): with self.assertRaises(OSError): makedirs(self.logfolder) find_or_make_logfolder() However, if not path.isdir(self.logfolder): is checking if the directory already exists or

How Can I Check View Code Coverage with CakePHP Tests?

ⅰ亾dé卋堺 提交于 2019-12-24 11:57:28
问题 When testing controllers, I can legitimately achieve 100% code coverage, as shown here: Example of Correct Report of 100% Code Coverage Controller Code <?php App::uses('AppController', 'Controller'); class UsersController extends AppController { public function example($option = null) { if ($option == 'foo') { $some_var = 'hello'; } elseif ($option == 'bar') { $some_var = 'goodbye'; } $this->set(compact('option', 'some_var')); } } Test Code <?php App::uses('UsersController', 'Controller');

How to revert Maven project.build variables after Clover plugin finishes?

孤街浪徒 提交于 2019-12-24 10:51:43
问题 I'm attempting to add integration tests to a large Maven project. Here is the desired order of events: Clean existing artifacts. Resolve dependencies and build project. Run unit tests via Surefire plugin. Fork lifecycle for Clover plugin. --- Instrument sources using Clover plugin. --- Modify project.build.directory and project.build.finalName for Clover. --- Build Clover instrumented project in a new directory. --- Run Clover instrumented unit tests via Surefire plugin. --- Check code

SonarQube: Scanning process ignores lcov.info

孤者浪人 提交于 2019-12-24 09:09:11
问题 I am scanning a ui project. The source code is in typescript . gulp test-coverage generates .js files (which are then scanned for coverage). (each .ts file gets a .js file right next to it, in the same location) I am pointing the scanner to the lcov.info file as follows: sonar.javascript.lcov.reportPaths=test-coverage/lcov.info The problem : The lcov.info , provides coverage information for .js files For some reason, SonarQube also provides coverage information for the *.ts files (although