Skip to content

redirect pytest warnings summary to stderr - #236

Closed
dirk-thomas wants to merge 1 commit into
masterfrom
dirk-thomas/redirect-pytest-warnings-summary-to-stderr
Closed

dirk-thomas wants to merge 1 commit into
masterfrom
dirk-thomas/redirect-pytest-warnings-summary-to-stderr

Conversation

@dirk-thomas

Copy link
Copy Markdown
Member

With the goal to make them more visible. A package can always opt to filter the warnings using e.g. the filterwarnings option in a pytest.ini file.

@dirk-thomas dirk-thomas added enhancement New feature or request review Waiting for review (Kanban column) labels Sep 26, 2019
@dirk-thomas dirk-thomas self-assigned this Sep 26, 2019
@rotu

rotu commented Sep 26, 2019

Copy link
Copy Markdown
Contributor

Why reparse stdout instead of making sure these messages get sent to the correct stream in the first place?

@dirk-thomas

Copy link
Copy Markdown
Member Author

Why reparse stdout instead of making sure these messages get sent to the correct stream in the first place?

Do you have a suggestion how to achieve that?

@rotu

rotu commented Sep 26, 2019

Copy link
Copy Markdown
Contributor

either with the pytest_runtest_logreport, pytest_terminal_summary or pytest_warning_captured hook.

https://docs.pytest.org/en/latest/_modules/_pytest/hookspec.html

@dirk-thomas

Copy link
Copy Markdown
Member Author

Closing in favor of #338.

@dirk-thomas
dirk-thomas deleted the dirk-thomas/redirect-pytest-warnings-summary-to-stderr branch April 13, 2020 05:20
@tylerjw

This comment has been minimized.

@tylerjw

This comment has been minimized.

@dirk-thomas

Copy link
Copy Markdown
Member Author

@tylerjw Your comments seem to be off topic for this ticket. colcon/colcon-cmake#67 seems to be discussing what you are referring to. Please consider to contribute a pull request to colcon-cmake to implement custom logic to separate the Ninja output.

@tylerjw

tylerjw commented Jul 8, 2020

Copy link
Copy Markdown

I'm sorry about that... I'll re-target my comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request review Waiting for review (Kanban column)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants