Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Unit tests] Different coverages presented by pytest and coveralls tools #585

Open
higa-daniel opened this issue Nov 19, 2024 · 1 comment

Comments

@higa-daniel
Copy link

  1. Test coverage presented in pytest (using pytest and pytest-cov packages):
pytest-cov The metric is calculated by: Stmts (statements) Miss (nº of statements not being executed) Cover is test coverage: (Stmts - Miss) / (Stmts) * 100
  1. Test coverage presented in coveralls:
Screenshot 2024-11-19 at 06 27 10

Might it be a mistake by the result presented in coveralls?

@msiemens
Copy link
Owner

msiemens commented Dec 3, 2024

Hey @higa-daniel,

That's interesting. For some reason, it seems like only 97 tests ran in your example, while the test suite should contain 204 tests in total. What exact command did you use to get the test coverage?

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

No branches or pull requests

2 participants