How Well Is ClickHouse Tested? A Detailed View of Increasing Our Own Coverage
ClickHouse, Wednesday, November 25th, 2026
ClickHouse details how it measures test coverage with LLVM instrumentation, reaching 91.8% of lines, and uses an AI agent to close gaps.
ClickHouse describes how it measures test coverage across about 2.6 million lines of C++ receiving more than 80 pull requests a day.
Using Clang instrumentation, a coverage build runs 23 test shards across unit, functional and integration suites, merges the profiles and publishes a report every 3 hours at coverage.clickhouse.com, and on November 12, 2026, master crossed 91.8% of source lines, 91.8% of functions and nearly 81% of branches.
An AI agent, part of the autonomous QA contributor ClickGap running on the Nerve agent runtime, writes tests for uncovered code; by November 3 it had opened 17 pull requests, 16 merged, adding about 5,600 newly covered lines.
ClickHouse also collects nightly per-test line data to decide which tests to run in CI.