Ruang penulis
SEBUAH JURNAL TENTANG TEKNOLOGI

Belajar hal baru.
Tulis. Bagikan.

Ruang untuk merangkai pengetahuan, satu baris kode setiap hari.
Temukan tutorial, ide, dan catatan dari perjalanan belajar.

1914 catatan & terus bertumbuh
PILIHAN EDITOR
Java

Memahami Java Stream: olah koleksi dengan lebih ringkas

Pelajari alur filter, map, dan collect untuk mengolah data Java dengan kode yang mudah dibaca.

D Tim Diary Coding · 1 menit baca
UNTUK RASA INGIN TAHUMU

Catatan terbaru.

JUNIT / CATATAN</>
JUnit17 Jul 2026

How do I create a custom JUnit extension?

JUnit 5 provides a powerful extension model that lets you hook into the test lifecycle. Here’s a comprehensive guide to creating custom extensions. 1. Choose the Right Extension Interface JUnit 5 offers several extension interfaces depending on what you want to do: Interface Purpose BeforeAllCallback / AfterAllCallback Run code before/after all tests in a class […]

Wayan · 4 menit baca
JUNIT / CATATAN</>
JUnit17 Jul 2026

How do I use JUnit extensions with @ExtendWith?

JUnit Jupiter (JUnit 5) provides a powerful extension model that lets you plug custom behavior into the test lifecycle. Instead of the old JUnit 4 approach of using @RunWith (which allowed only one runner) or @Rule, JUnit 5 uses @ExtendWith — and you can apply as many extensions as you want. Let’s break this down […]

Wayan · 6 menit baca
JUNIT / CATATAN</>
JUnit17 Jul 2026

How do I generate test reports for JUnit tests?

Generating test reports for JUnit tests helps you understand test results, track failures, analyze trends, and share results with your team or CI/CD pipeline. Here’s a comprehensive guide covering the most common approaches. 1. Using Maven Surefire Plugin (Default Reports) The Maven Surefire Plugin automatically generates test reports when you run tests. Basic Configuration <build> […]

Wayan · 5 menit baca
JUNIT / CATATAN</>
JUnit17 Jul 2026

How do I run JUnit tests in CI/CD pipelines?

Running JUnit tests automatically in a CI/CD pipeline ensures every commit is verified before it reaches production. The core idea is simple: your CI server checks out the code, builds the project, and runs mvn test (or gradle test) — the same commands you use locally. Below are practical setups for the most common CI/CD […]

Wayan · 5 menit baca
GRADLE / CATATAN</>
Gradle17 Jul 2026

How do I configure Gradle to run JUnit tests?

Gradle has excellent built-in support for running JUnit tests. Configuring it properly ensures your tests are discovered, executed, and reported correctly. Let’s walk through the setup step by step. The Short Answer To run JUnit 5 (Jupiter) tests with Gradle, you need to: Add the JUnit Jupiter dependency to testImplementation. Enable the JUnit Platform in […]

Wayan · 6 menit baca
JUNIT / CATATAN</>
JUnit13 Jul 2026

How do I configure Maven Surefire for JUnit tests?

To configure Maven Surefire for running JUnit tests, add the Maven Surefire Plugin to the <build> section of your pom.xml. For modern JUnit 5 tests, you typically need: A JUnit 5 dependency The Maven Surefire Plugin Test classes named using Maven’s default test naming patterns 1. Add JUnit 5 Dependency <dependencies> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter</artifactId> <version>5.13.4</version> […]

Wayan · 4 menit baca

Pengetahuan tumbuh ketika dibagikan.

Simpan rasa ingin tahu. Selalu ada hal baru untuk dipelajari.

Jelajahi catatan ↗
Putu Adi Guna Permana
TENTANG PENULIS

Dr (C). Ir. Putu Adi Guna Permana, S.Kom., M.Kom., IPM., ASEAN Eng.

Penulis dan pendiri Diary Coding — berbagi catatan, tutorial, dan pengalaman seputar pemrograman untuk siapa pun yang ingin terus belajar.