Entries

Final entry

Codeleak.pl Archived

It's been more than 15 years since I created blog.codeleak.pl. In March 2011 I published the first post here, and it was just a few lines of Java code. Today, after 143 posts and more than 4.6 million views, I decided to close the blog and keep it as an archive.

Playwright meets JUnit 5

Playwright is a Node.js -based tool for automating browsers. It supports all modern rendering engines including Chromium , WebKit and Firefox . Playwright can be used with JavaScript , TypeScript , Python , .NET and Java . In this tutorial, we will explore the setup of a test automation project using Playwright for Java , JUnit 5 and Gradle . You will also learn some basics of Playwright tools like codegen , Playwright Inspector and trace viewer. I will also provide some basic setup for Docker as well as GitHub Actions . Let's get started!

Starter template for prototyping and building CLI tools with Node.js and TypeScript

macOS: Insert current date shortcut with `Shortcuts.app`

Shortcuts.app in macOS is a tool for automating repetitive tasks. It has a user-friendly drag-and-drop interface and supports tasks such as opening apps, copying/pasting text, and sending messages. In this article, I'll demonstrate how to create a shortcut that inserts the current date into any app, which I use to quickly add dates to my notes, emails or Slack messages.

Frontend code analysis with SonarQube

SonarQube is an open-source tool for continuous code quality inspection that analyzes code for defects, vulnerabilities, and code smells. It helps developers and teams to improve the quality of their code by identifying problems early in the development process and providing actionable feedback to fix them.