A quick tutorial on the differences between code coverage and test coverage.
Search Results for: Test coverage
Improving Test Coverage and Readability With Spock’s Data Pipes and Tables
Learn how to use Spock’s data feeds in a where block.
How to Effectively Unit Test CompletableFuture
Learn how to unit test a CompletableFuture using black-box and state-based testing techniques.
Maven Multi-Module Project Coverage With Jacoco
Learn how to build a Maven multi-module project with Jacoco coverage.
Fail Maven Build if JUnit Coverage Falls Below Certain Threshold
Learn how to cause a Maven build to fail when the JaCoCo code coverage falls below a given threshold.
Gray Box Testing Using the OAT Technique
Gray Box testing is a statistical technique that allows us to test a lot of edge cases without testing every single possible permutation of input. We look at how it works and how to implement it with parameterized tests in JUnit.
Testing Spring OAuth2 Access-Control
Explore options for testing Spring OAuth2 access control rules with mocked identities.
Unit Test Private Methods in Java
Why it’s not a good idea to test a private method and how to do it if it’s extremely necessary.
Best Practices for Unit Testing in Java
Learn about best practices for unit testing in Java.
Code Coverage with SonarQube and JaCoCo
A guide to measuring code coverage using SonarQube and JaCoCo.
Guide to JUnit 5 Parameterized Tests
Learn how to simplify test coverage in JUnit 5 with parameterized tests
Mutation Testing with PITest
This article briefly introduces mutation testing using the PITest library
Exclusions from Jacoco Report
Learn how to exclude files from test coverage reports in Jacoco
Intro to JaCoCo
A quick intro to using the JaCoCo maven plugin to generating test coverage reports.
Exploring Complex Number Arithmetic Operations in Java
Learn how to perform complex-number operations in Java.
Verify That Lambda Expression Was Called Using Mockito
Learn how to test if our code calls a lambda function by using Mockito.
Trunk-Based Development
Learn about the trunk-based development approach and understand how it differs from the feature branch development model.
Format Multiple ‘or’ Conditions in an If Statement in Java
Learn how to improve the readability of multiple conditions in an if statement.
Java Weekly, Issue 410
Finalizer deprecation, string improvements in Java 17, Kotlin support in protocol buffers, cache libraries on JVM, and software engineering principles.
Java Weekly, Issue 407
Faster Maven builds (always good), how SREs scale in an org, and a cool Datadog feature. A solid week overall.