Skip to content

[Meta-ticket]: Add pytest.ini to all packages which use pytest #951

@clalancette

Description

@clalancette

In the current state, if you run any of the pytest tests locally, you get warning messages like:

/home/ubuntu/.local/lib/python3.8/site-packages/_pytest/junitxml.py:417
  /home/ubuntu/.local/lib/python3.8/site-packages/_pytest/junitxml.py:417: PytestDeprecationWarning: The 'junit_family' default value will change to 'xunit2' in pytest 6.0.
  Add 'junit_family=xunit1' to your pytest.ini file to keep the current format in future versions of pytest and silence this warning.
    _issue_warning_captured(deprecated.JUNIT_XML_DEFAULT_FAMILY, config.hook, 2)

We currently workaround this in CI by always adding a pytest.ini before starting tests (see ros2/ci#471), but it would be nice to get rid of that and just have local and CI work the same.

This is a tracking bug for all of the places we need to change it. Once I've opened the relevant PRs, I'll run one CI job for all of them here.

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