Skip to content

Coverage Report using pytest-cov #513

Answered by sinisaos
billsioros asked this question in Q&A
Discussion options

You must be logged in to vote

@billsioros I'm tried to test a simple Hello World application. Here is the project tree.

.
├── htmlcov
├── __pycache__
├── pyproject.toml
├── src
│   ├── __init__.py
│   └── server.py
└── tests
    ├── conftest.py
    ├── __init__.py
    └── test_app.py

I modified your pyproject.toml like this

[tool.pytest.ini_options]
pythonpath = ["src"]
asyncio_default_fixture_loop_scope = "session"
log_cli = false
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
log_cli_format = "%(asctime)s %(levelname)s %(message)s"
log_cli_level = "INFO"
python_files = "test_*.py"
python_functions = "test_*"
testpaths = "tests"
markers = [
  "unit: Unit tests",
  "integration: Integration tests",
  "skip: Skip tests",
  "x…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@billsioros
Comment options

Answer selected by billsioros
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants