I am trying to get full coverage on a very simple junit test using Mockito and am striking out. My disclaimer is that I am new to Mockito though what I am trying to do would seem pretty …
Tag: code-coverage
Setting up properly SonarQube’s for Code Coverage
I’m using JUnit5 on a SpringBoot backend application server using Maven. Here is the sonar-project.properties file that is at the root of the project: sonar.host.url=https://sonarcloud.io sonar.login=…
Gradle jacoco coverage report with more than one submodule(s)?
Does anybody know how to configure a gradle file for java jacoco report that contain codecoverage of more than one gradle submodule? my current approach only shows codecoverage of the current …
Test Coverage: How to cover assertions?
EDIT: So It looks like JeffStorey link to the bug is correct. With assertions enabled the compiler will generate extra code. There ends up being 1 extra unreachable branch created. One of my methods constructor has these asserts I’m trying to cover it by doing this And again with values Board (-4 , 2) and Board (2, 2) So I’ve