Subject
7 entries
Testing
Bookmarks
Improving Django Testing with Seed Databases
A technique for speeding up Django CI test runs by pre-seeding a database with migrations already applied, then restoring it via pg_dump/pg_restore rather than re-running migrations from scratch each time. Significant CI speedup for projects with many migrations.
Python Mocking Minimal Working Examples
A minimal working example (MWE) repository demonstrating Python mocking patterns with unittest.mock — covering patch, MagicMock, side_effect, and common gotchas. A practical reference for developers who know they should mock but keep forgetting the syntax.
ABX: Blind Audio Comparison Testing
ABX by jaakkopasanen is an open-source tool for conducting blind A/B/X audio comparison tests — the gold standard for objectively evaluating whether two audio signals are perceptibly different. Used for testing headphone EQ curves, codecs, and audio processing.
Testing Distributed Systems
A curated list of resources on testing distributed systems — covering Jepsen, TLA+, chaos engineering, simulation testing, and formal verification. The most comprehensive reference starting point for this notoriously hard problem.
Foundry: Ethereum Development Toolkit in Rust
Foundry is a blazing-fast Ethereum development toolkit written in Rust — Forge for testing, Cast for chain interaction, Anvil for local node, Chisel for REPL. Tests written in Solidity itself, with fuzzing and invariant testing built in. 2-5x faster than Hardhat.
Effective Testing for Machine Learning Systems
Jeremy Jordan's framework for testing machine learning systems — pre-train checks, invariance tests, directional expectation tests, and minimum functionality tests. Organizes tests around model 'skills' rather than code structure.
Speeding up scikit-learn Workflow Using a High-Performance Go Proxy
A 2016 blog post on using HoverPy — a Go-based HTTP recording/replay proxy — to speed up scikit-learn workflows that make external HTTP calls. An early example of applying API mocking techniques to ML pipelines for faster, deterministic testing.
