Sometimes you have to work on different projects that are hosted on different Git management systems (GitHub, Gitlab, BitBucket, Gitea). The classical scenario is that you work on open source projects that are hosted on GitHub and on enterprise projects that are hosted on an own Git management system. These projects …
Read MoreThanks Jenkins Maven HPI Plugin, you can do the most Jenkins plugin development stuff locally. But in some cases, you have to debug a Jenkins instance remotely (In my case, the Jenkins had to run in Azure to reproduce a bug). Jenkins is a Java application, so you have to add Java's JDWP agent for debugging as Java …
Read MoreSome days ago, I passed my CKAD (Certified Kubernetes Application Developer) exam. In this post I'd like to share the resources, that I used for my preparation. I started with reading the book Kubernetes in Action, First Edition to understand the concept of Kubernetes (k8s) under the hood. It gave me a deep dive in …
Read MoreHow to Measure Test Coverage in Invoker Tests with JaCoCo
May 31, 2021 · 2 min read · maven test-report integration-testing maven-plugin maven-plugin-testing maven-invoker-plugin jacoco test-coverageDuring the development of the P2 Maven Plugin, I wanted to get an overview about the test coverage of the code. The tests of this plugin can be divided in two groups: Unit tests, that is written with Java, Groovy and JUnit; integration tests, that is written with Maven Invoker Plugin JaCoCo is the defacto standard for …
Read MoreTest Coverage Reports For Maven Projects In SonarQube 8.3.x
Jun 10, 2020 · 6 min read · integration-testing jacoco maven sonarqube test-coverage test-report unit-testingSome years ago I write a blog post about how to generate test reports in SonarQube separate in test report for unit tests and for integration tests. Since SonarQube 6.2 the test report isn't separate in these categories any more (see SonarQube's blog post). SonarQube merges all test reports to one test report with an …
Read MoreIn this blog post I'd like to demonstrate how I integrate Testcontainers in Spring Boot tests for running integration tests with a database. I'm not using Testcontainers' Spring Boot modules. How it works with them, I will show in a separate blog post. All samples can be found on GitHub. Why Testcontainers? …
Read MoreSome weeks ago, I gave a workshop about Ansible and I was asked how to set up a local test environment for Ansible. Requirement is that this test environment can run on a Windows 10 without a Linux subsystem. I don't why, but it was not my first customer where Windows 10 could not be used with Linux subsystem (Don't …
Read MoreSome weeks ago, I visited the bar camp "Software Engineering Camp 2019" in Erlangen. It was my first time visiting. I'd like to share my experience. Friday evening The bar camp started on Friday evening with three lighting talks. Firstly, Markus Harrer talked about psychology in software development. Here are the …
Read MoreThis blog post wants to show another approach how to implement the Strategy Pattern with dependency injection. As DI framework, I choose Spring framework From Wikipedia Firstly, let's have a look how the Strategy Pattern is implemented in the classic way. As starting point, we have a HeroController that should add a …
Read MoreI create a sample Groovy project for Maven, that mixes Spock tests and JUnit 5 tests in one project. In the next section I'll describe how to set up such kind of Maven project. Enable Groovy in the Project First at all, you have to enable Groovy in your project. One possibility is to add the GMavenPlus Plugin to your …
Read More