bg de en es fr it nl pl pt sv tr zh

software testing

A single command to test all my changed Go packages

alexwlchan’s notes

go test $(git ls-files --modified | xargs dirname | uniq | xargs -I '{}' echo "./{}")I work in a Go monolith with many packages, and my patches often span multiple patches. Before I push to CI, I like to test all the packages with changed files, but enumerating all those packages by hand is...

Using Pytester to test my Playwright fixtures

alexwlchan

A month ago, I wrote about my Playwright fixture for testing static websites in a browser. I’ve been copying that fixture from project-to-project, but recently I decided to add it to chives, the utility library I use for all my static websites (or tiny archives). One of my rules for chives is that...

Using Playwright to test my static sites

alexwlchan

I build a lot of static websites – including this site and all of my local media archives – and I want to test them. Most of my pages are static HTML and I can write automated tests that analyse the HTML, but for more complex sites I have JavaScript that runs in the browser and modifies the page....