2 ms·
I've been doing this for nearly three years now - it works really well. It's not particularly sophisticated - just some tests which introspect the code and the
by simonw 5y ago
I've been doing this for nearly three years now - it works really well.
It's not particularly sophisticated - just some tests which introspect the code and then use dumb pattern matching against the documentation text to check that different concepts from the code are mentioned at least once in the docs: https://simonwillison.net/2018/Jul/28/documentation-unit-tests/ https://simonwillison.net/2018/Jul/28/documentation-unit-tes...