Skip to content

add coverage-py mixin#21

Merged
dirk-thomas merged 3 commits intocolcon:masterfrom
mikaelarguedas:py-coverage
Mar 27, 2020
Merged

add coverage-py mixin#21
dirk-thomas merged 3 commits intocolcon:masterfrom
mikaelarguedas:py-coverage

Conversation

@mikaelarguedas
Copy link
Copy Markdown
Contributor

On top of passing --pytest-with-coverage, this also adds a print of the report to the terminal instead of only generating xml and html report.

@dirk-thomas would you be ok with adding the report to terminal by default ? If so I'm happy to remove it from here and add it at https://github.com/colcon/colcon-core/blob/af7fa089962a9e9a35926734e17b00cfb4c780a6/colcon_core/task/python/test/pytest.py#L94

Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>
@dirk-thomas
Copy link
Copy Markdown
Member

would you be ok with adding the report to terminal by default ? If so I'm happy to remove it from here and add it at https://github.com/colcon/colcon-core/blob/af7fa089962a9e9a35926734e17b00cfb4c780a6/colcon_core/task/python/test/pytest.py#L94

Also outputting the coverage info to the terminal by default (assuming it goes to stdout and it isn't too verbose) sounds good to me. A pull request for that would be appreciated.

Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>
Comment thread coverage.mixin Outdated
Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>
@dirk-thomas
Copy link
Copy Markdown
Member

Thanks for the contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants