-
Notifications
You must be signed in to change notification settings - Fork 199
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
More robust unit tests: Strict checking of output as expected causes many false positives #1539
Comments
@buhtz As a first step I think we should really filter out all warnings (as you have proposed). |
OK, that is a compromise I can live with. After 1.4.1 or before? |
We could do it for v1.4.1 if another warning needed to be added to the exclusion list, otherwise directly after the v1.4.1 release. And for refactoring and improving the unit tests I have no idea how a realistic schedule could look alike. |
OK, I could take hand on that in the next two weeks.
This is IMHO an ongoing task. We will discover problems like this all along the road. |
The test TestBackInTime::test_local_snapshot_is_successful() now do ignore all log entries beginning with Warning or WARNING. Also slightly improved SSH Server related testing code in generic.py and added a FAQ entry for it. Fix #1539
Background
Several unit tests do check the captures console output ("actual") against the expected output.
Impact
This is not very robust (causes many false positives due to unexpected warnings mainly caused by different external setup constellations).
Current implementation
Currently well known "false positive" warnings are filtered out from the actual console output:
https://github.com/bit-team/backintime/blob/dev/common/test/test_backintime.py#L143-L150
Proposals
Either
References
See also the side discussion in this PR which added another tolerated warning:
#1537 (comment)
The text was updated successfully, but these errors were encountered: