Skip to content

Default to error on pytest warning#416

Closed
jacobperron wants to merge 1 commit intomasterfrom
jacob/default_pytest_warn_is_error
Closed

Default to error on pytest warning#416
jacobperron wants to merge 1 commit intomasterfrom
jacob/default_pytest_warn_is_error

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