#Testing
9 posts tagged Testing. All posts
Recording API Traffic in Chrome: HAR Files, the Recorder and Replaying It in TestsCapture a web app's API calls with Chrome DevTools, Puppeteer, Playwright and the DevTools MCP server, scrub secrets from HAR files, and replay them in tests.
Maintaining a Legacy PHP CodebaseWhat it takes to keep the YellowSheet PHP site running, including upgrade attempts, Stripe, crons, tests and migrations.
Measuring C# performance with BenchmarkDotNetWrite and read C# microbenchmarks with BenchmarkDotNet: [Benchmark], [Params], baselines, [MemoryDiagnoser], Release builds, and what each results column means.
StateFlow and SharedFlow in Kotlin for Android UI stateHot and cold flows, StateFlow for screen state, SharedFlow for one-off events, stateIn with WhileSubscribed(5000), repeatOnLifecycle, and testing with runTest.
Property-based testing in Rust with proptestUse proptest to test a Rust run-length encoder: the proptest! macro, strategies, prop_assert, how shrinking finds a minimal failing input, and regression files.
Property-based testing in Python with HypothesisProperty-based tests with Hypothesis and pytest: strategies, @given, a real bug in a run-length encoder, shrinking, @example, settings and the example database.
Table-driven tests and native fuzzing in GoWrite table-driven Go tests with t.Run and t.Parallel, keep fixtures in testdata, then add a fuzz target that finds a real bug in a small version parser.
Writing an incremental source generator in C#Build a C# incremental source generator with IIncrementalGenerator and ForAttributeWithMetadataName: project setup, emitting code, referencing it, and testing its output.
A small eval runner for LLM features in PythonBuild a 160-line eval runner for an LLM feature: JSONL test cases, exact, regex and LLM-as-judge graders, concurrent runs and scores tracked per prompt version.
© 2026 David Li · Home · Blog · RSS ·Classic site · Built with Astro, Starlight and three.js · Logos:Font Awesome Free (CC BY 4.0)