Skip to content

Conversation

@hslusarek
Copy link
Contributor

@hslusarek hslusarek commented May 25, 2020

This PR improves the python coverage reporting:

  • switch from xml to html report,
  • only consider the python coverage reports for project source files,
  • allow the exclusion of files for the python coverage.

@hslusarek hslusarek force-pushed the refactor/python_coverage_format branch from 6d6f2c4 to 5f86aaf Compare May 25, 2020 12:54
COMMAND python-coverage combine || echo "WARNING: No python coverage to combine!"
COMMAND python-coverage xml || echo "WARNING: No python xml to output"
COMMAND python-coverage report --include "*${PROJECT_SOURCE_DIR}*" --omit ${COVERAGE_EXCLUDES}
COMMAND python-coverage html --include "*${PROJECT_SOURCE_DIR}*" --omit ${COVERAGE_EXCLUDES} || echo "WARNING: No python html to output"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please either a) make the HTML an option or b) generate both XML and HTML. I know of several projects that are using codecov.io to process the XML output, so we can't break that workflow.

I presume we should add the include/omit to the XML report generation as well though?

Copy link
Contributor Author

@hslusarek hslusarek May 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the feedback. I opened a new PR #24 which, in combination with PR #23, splits the different changes into smaller commits. Also, I now only add things.

@hslusarek hslusarek mentioned this pull request May 28, 2020
@hslusarek hslusarek closed this May 28, 2020
@hslusarek hslusarek deleted the refactor/python_coverage_format branch May 28, 2020 12:20
knorth55 added a commit to knorth55/code_coverage that referenced this pull request Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants