Developer ties README template count to CI tests after finding 8 templates shipped, not 50
A developer discovered that the README of their SQL playground repository claimed 50+ query templates while only 8 had actually been shipped. Instead of writing the missing templates immediately, they made the claim enforceable by running the shared template library through a parametrized pytest suite. The tests check that each query executes against a deterministic DuckDB sample database, returns rows, and that the total template count stays at or above 50. The library now contains 55 templates grouped by teaching topic, and DuckDB was chosen because it supports SQL features SQLite lacks. The author recommends turning one public number into a test so that documentation and code cannot drift apart.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in