Tags » Code Coverage

Mock System class with Mockito + PowerMock

In this post, I am going to show how to mock the System.getenv and System.getProperty methods.

I have used Mockito and PowerMock to do this. Make sure to include the below dependencies in your pom file. 348 more words

Java

Code coverage using Eclipse, GNU ARM toolchain, and Gcov for embedded systems

Overview

The core difficulty of getting code coverage with gcov for embedded systems is the following: a program instrumented to collect coverage data (compiled with… 1,872 more words

Code Coverage

Integrate .NET Core, AppVeyor, OpenCover and Codecov

As a developer, I need to take a good rest at night. In my line of work the only way to achieve it is using an integrated workflow pipeline, aka Source Code Management (SCM), Continuous Integration (CI) and Continuous Deployment (CD) with some tools in the middle. 373 more words

PowerShell

Symfony; get xdebug working with PhpStorm

Symfony; get xdebug working with PhpStorm

In an earlier posting xxx we created a Symfony project. Let’s create a new Symfony app and get xdebug working there so in PhpStorm we can set breakpoints etc. 14 more words

Php

How to integrate JaCoCo Code coverage tool with Maven

I have used Cobertura code coverage tool for one of my recent project and followed the steps mentioned in this link Cobertura Example.

When I have tried to upgrade Java version to 1.8, got some issues due to the usage of Lambda expression. 427 more words

Java

Java 8 + Cobertura maven plugin - net/sourceforge/cobertura/coveragedata/TouchCollector - No class def found error

I have got the below stack trace while upgrading the java version from 1.7 to 1.8 and using cobertura maven plugin version 2.7.

java.lang.NoClassDefFoundError: net/sourceforge/cobertura/coveragedata/TouchCollector
    at .__cobertura_init(.java)
    at .(.java)
    at Test.(Test.java:113)
Caused by: java.lang.ClassNotFoundException: net.sourceforge.cobertura.coveragedata.TouchCollector
… 84 more words
Java