Yonatan Kra

Yonatan Kra

Family, Code, Run

  • Blog
  • Planned Talks
  • About Me

Tag: testing

Home / testing
A cartoon illustration shows a friendly white and blue robot with a green glowing antenna kneeling and using large green hedge clippers to cut through tangled, grey, dead vines. The vines are labeled "legacy code" in dark blue text. As the robot clears the dead vines, healthy, vibrant blue plants with glowing leaves are springing up from the ground. More "legacy code" text is visible near the remaining tangled mess, and the word "code" appears near the new plants. The background is a plain, light grey color.

Busting Legacy Code with AI Agents and Test Driven Development

November 25, 2025November 25, 2025 Yonatan KraLeave a Comment on Busting Legacy Code with AI Agents and Test Driven Development

Introduction

How to eliminate legacy code? Martin Fowler and Michael Feathers both agree that lack of tests are core factor in legacy code. With AI agents, tackling legacy code and turning it into “evergreen” code is easier than ever.

What

…
Read More
human approves tests vs AI

Meaningful Tests: Human Hubris vs. AI

September 9, 2025September 9, 2025 Yonatan KraLeave a Comment on Meaningful Tests: Human Hubris vs. AI

What makes a test meaningful? How can tests shape better architecture? And what roles do humans and AI play?

A few years ago I made a comment in a code review about a test description. That simple remark evolved into …

Read More
Illustration to depict a BlueSky bot. A robotic figure with fairy wings. The robot has a blue and silver metallic body, with details suggesting internal mechanics. The wings are large, delicate, and translucent. Above the robot's head floats a glowing blue butterfly with a faint halo.

What can we learn from building a BlueSky web component bot?- Part 1

December 15, 2024December 21, 2024 Yonatan KraLeave a Comment on What can we learn from building a BlueSky web component bot?- Part 1

How to build a web component based application that integrates the BlueSky Social public API? Covered topics: TDD, BlueSky API, BlueSky bot (automation), AtProto SDK, Streaming, Web components.

Introduction

BlueSky is a (relatively) new Social network nowadays. It looks like …

Read More
test-drive-your-code

ConfrontJS 2023 – The Movie

September 9, 2023September 9, 2023 Yonatan KraLeave a Comment on ConfrontJS 2023 – The Movie

On March 2023 I gave the keynote at ConfrontJS in Warsaw. I spoke about how we can become more professional as developers, my 5 tips for becoming such, and a final most-important take-home message to the audience.

…
Read More
Setup Vitest in a Tauri Project

How to write Unit Tests for Tauri Frontend with Vitest?

September 8, 2023September 24, 2023 Yonatan KraLeave a Comment on How to write Unit Tests for Tauri Frontend with Vitest?

Starting a project for me usually starts with setting up the testing infrastructure. The only exception is when one already exists. In this article we will learn two things. We will start from setting up vitest in the Tauri project. …

Read More
Communication Skills

How Can Tests Contribute to Communication?

September 1, 2023September 1, 2023 Yonatan KraLeave a Comment on How Can Tests Contribute to Communication?

Tests can improve communication and save time (and frustration). Bad tests can do the opposite. In this article, we’ll explore an example from real life of how bad tests are harmful and how good ones convey the right information.

A

…
Read More
implementation details everywhere

A Tale of Implementation and Detail

August 27, 2023August 28, 2023 Yonatan KraLeave a Comment on A Tale of Implementation and Detail

As a testing advocate, I frequently delve into “implementation details” and “public interfaces.” These terms refer to the inner workings of your API and how it’s presented to users. Rather than just defining them, let’s explore …

Read More
Unit tests in Rust

How to Write Unit Tests in Rust for Tauri?

August 16, 2023September 4, 2023 Yonatan KraLeave a Comment on How to Write Unit Tests in Rust for Tauri?

Tauri is a desktop apps framework built with Rust for its backend and JavaScript for its front end. The first thing I like to do in a project is set up a unit tests infrastructure. I found it surprisingly easy …

Read More
Testing Live Session

Live Session: 3 Tips for More Meaningful Tests

May 15, 2023May 15, 2023 Yonatan KraLeave a Comment on Live Session: 3 Tips for More Meaningful Tests

In 12 minutes, I shared with my colleagues three tips I used to refactor tests of legacy code. Testing the API, ensuring the tests fail for the right reason, and avoiding the coupling pitfall are exhibited in this live …

Read More
Magic Trick to Write Effective Tests

The One Trick to Writing Effective Tests

February 20, 2023February 20, 2023 Yonatan KraLeave a Comment on The One Trick to Writing Effective Tests

How do you know your test is effective? How do you know your test protects you from breaking changes? And how can you do TDD without doing TDD? The best distillment of TDD taken from a TDD workshop in JFokus.…

Read More

Posts pagination

1 2 Next

I’m an instructor at:

Egghead.io

Follow Me On:

  • Follow me on Linkedin
  • Follow me on Bluesky

Recent Posts

  • Busting Legacy Code with AI Agents and Test Driven Development
  • Meaningful Tests: Human Hubris vs. AI
  • What can we learn from building a BlueSky web component bot?- Part 1
  • How to Remove a Secret Token from Your Git History
  • How to Deploy Static Websites with Nx, GitHub, and Cloudflare?
  • Busting Legacy Code with AI Agents and Test Driven Development
  • Meaningful Tests: Human Hubris vs. AI
  • What can we learn from building a BlueSky web component bot?- Part 1
  • How to Remove a Secret Token from Your Git History
  • How to Deploy Static Websites with Nx, GitHub, and Cloudflare?
  • Implementing Your Own SSR Server for Web Components

Categories

  • Algorithms
  • Architecture
  • AskQL
  • Blogging
  • canvas
  • chrome extensions
  • CodeTalks 2019
  • Coding
  • Conferences
  • ConfrontJS
  • ConfrontJS 2019
  • Cypress
  • debugging
  • Design Patterns
  • devops
  • docker
  • Flutter
  • Gaming
  • Github
  • github actions
  • GraphQL
  • Interview Questions
  • Javascript
  • javascript engine
  • Javascript Israel
  • jest
  • Memory
  • Meta Programming
  • Musings
  • nodejs
  • NPM
  • nx
  • Open Source
  • Performance
  • Playwright
  • Rust
  • Security
  • Skills
  • Tauri
  • Tauri Demo
  • Testing
  • tutorials
  • typescript
  • Uncategorized
  • vivid
  • WarsawJS
  • Web Component
  • webpack
| beetech by Buzthemes.