Skip to content

Feature request: Semantic production code coverage information in sqlite database #747

@fkromer

Description

@fkromer

The sqlite database table "context" already contains semantic information "context". As far as I know the type of the context is limited to "test" right now.

context_id context
1 test_some_method
2 test_some_function

The sqlite database tables "line" and "arc" contain line/branch based production code coverage information.

Could we add production code coverage information with semantic meaning? This could be done either as (option a) a separate table "semantic" or as (option b) part of the line and arc table as additional info?

option a (separate "semantic" table):

file_id context_id module class method function
1 1 some_module SomeClass some_method
2 2 some_module some_function

option b (line table with additional info):

file_id context_id module class method function lineno
1 1 some_module SomeClass some_method 17
1 1 some_module SomeClass some_method 18
...
2 2 some_module some_function 34
2 2 some_module some_function 35
...

For some consistent, exemplary database table content refer to python-tia/coveragepy_database_tables.ipynb.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions