Testing

17 articles 路 all categories

Latest Testing articles

January 2026

A better way to end-to-end test your webapp

End-to-end tests are the best way to test your webapp, but they're flaky and annoying to write. I'm trying a new agentic approach that fixes the issue.

March 2025

What I mean by "tests can be slop"

Tests may look like slop, but make them clear, not clever. Best practices are key: Test outcomes, not code. Name with intent. Keep tests independent. More straightforward tests beat fewer abstract ones.

AI writes good tests, actually

I've been using AI to write tests and it works surprisingly well! Here's how.

May 2024

Why you shouldn't use AI to write your tests

If you derive tests from your implementation, you can't apply the Beyonce rule. What if the code is wrong and that wasn't the programmer's intent? We'll never know. The bug now exists in both places.

December 2021

pg-mem and jest for smooth integration testing

The cult of TDD leads you down a dark and stormy path towards brittle code with a false sense of security. But there is a better way. A sweet spot between unit and heavy integration.

October 2021

How to configure Jest with TypeScript

Using plain Jest on a TypeScript codebase is kinda rough. No types in tests no thanks. Making Jest and TypeScript work together smoothly is something you do just rarely enough to forget the details. Hope this helps you and future me too 鉁岋笍

October 2016

WTF is X-Frame-Options?

You don't need tests

January 2015

How to run JavaScript tests in Chrome on Travis

March 2013

Bring Ruby VCR to Javascript testing with Capybara and puffing-billy

October 2012

Simple trick that lets you code twice as fast

July 2012

Blackbox testing node.js apps

March 2012

How to make your django app slow

February 2012

Unit testing is for lazy people

December 2011

Simple trick for testing forms full of checkboxes with django

August 2009

The ten pros and cons of unit testing

June 2009

Unit testing is anti-productive