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

Default to error on pytest warning #416

Closed
wants to merge 1 commit into from

Conversation

jacobperron
Copy link
Member

@jacobperron jacobperron commented Mar 20, 2020

By passing the colcon test argument '--pytest-args -W error', any Python warnings produced by pytests will result in a test failure.
Previously, warnings were silently ignored.

Example of build with the newly proposed test argument, testing ros2node, which has a known Python warning: Build Status

By passing the colcon test argument '--pytest-args -W error', any Python warnings produced by pytests will result in a test failure.
Previously, warnings were silently ignored.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron
Copy link
Member Author

I don't think this is the right solution, since it causes builds to be red on warnings.

@clalancette clalancette deleted the jacob/default_pytest_warn_is_error branch September 3, 2024 16:25
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.

1 participant