Skip to content

Pytest ini options in pyproject.toml #377

Description

@bprobert97

Raised in #368 by @rwb27

I see that this is the same as CI. I've mentioned elsewhere that I tend not to add the --cov argument, as it's in pyproject.toml. The relevant lines are:

[tool.pytest.ini_options]
addopts = [
    "--cov=labthings_fastapi",
    "--cov-report=term",
    "--cov-report=xml:coverage.xml",
    "--cov-report=html:htmlcov",
    "--cov-report=lcov",
]

I'd happily get rid of some of those if they're not needed, in particular I think the XML output requires a dependency and isn't used in CI? It would also be reasonable to disable HTML output by default. That was a stop-gap for me, before I realised the VSCode integration was much more useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions