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

chore: Silence Qt warnings during tests #110

Merged
merged 1 commit into from
Mar 7, 2025

Conversation

p12tic
Copy link
Contributor

@p12tic p12tic commented Mar 7, 2025

Currently tests emit a lot of warnings like:

Accessing MimeDatabase for text/python before plugins are initialized

or

SOFT ASSERT [<...>]: "theSettings" in <..>/src/libs/utils/aspects.cpp

These make navigating test output difficult. The warnings are mostly useless in tests, so these can be disabled.

If this ever becomes a problem, the code can be enhanced to re-enable tests via environment variable.

Currently tests emit a lot of warnings like:

Accessing MimeDatabase for text/python before plugins are initialized

or

SOFT ASSERT [<...>]: "theSettings" in <..>/src/libs/utils/aspects.cpp

These make navigating test output difficult. The warnings are mostly
useless in tests, so these can be disabled.

If this ever becomes a problem, the code can be enhanced to re-enable
tests via environment variable.
@p12tic p12tic force-pushed the test-silence-warning-noise branch 2 times, most recently from a49b685 to 52b6fb2 Compare March 7, 2025 00:50
@Palm1r Palm1r merged commit 9a50476 into Palm1r:main Mar 7, 2025
6 checks passed
@p12tic p12tic deleted the test-silence-warning-noise branch March 8, 2025 01:17
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.

2 participants