coveragepy icon indicating copy to clipboard operation
coveragepy copied to clipboard

Allow querying the contexts in the HTML report

Open gaborbernat opened this issue 1 year ago • 1 comments

Would be nice to have a page where one could enter the context prefix and would return a search result that link to the files that has that context 🤔

gaborbernat avatar May 11 '23 01:05 gaborbernat

This is possible by querying the SQLite database directly:

% sqlite3 .coverage "select distinct f.path from file f, arc a, context c where f.id = a.file_id and a.context_id = c.id and c.context like 'prefix%';"

I'm wondering about other ways to make the information available. There's a coverage debug data command, but coverage debug contexts doesn't sound like what you would want.

nedbat avatar May 16 '23 19:05 nedbat