-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add sharness tests to document existing mount bugs #362
Conversation
This uses test_expect_failure to document some bugs related to 'ipfs mount'. License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Great!!! Though, not sure about having tests passing only to document a bug? (i.e. before we invert them to fail if bug). The alternative is perhaps to keep this PR open until we fix it, and then merge. What would people prefer? |
In Git there are a number of test_expect_failure for some known bugs.
In Git, 5. is especially true because Git has no bug tracking system (except the mailing list and test_expect_failure). What I can also do is add the issue number in the test label. It will make it easy to find the issue when looking at the test, and to find the test when looking at the issue. |
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
They're both useful, complementary sources of information. It's nice to have the issue documented in tests/code. The system is going to get large enough such that no one person will know everything about its entire state. Documenting the implementation is insufficient since the implementation can change. Documenting the behavior in a test is a great way to keep the memory alive. And when the issue is resolved, we have a test in place to keep it resolved. I prefer a slightly different pattern for accomplishing this though:
This is a really minor detail though. With either method, we are likely to achieve similar results in the end. +1 for issue |
@maybebtc there is a kind of warning that the test is being skipped:
We have: In the end, we get:
They appear under "broken", not under "failed". |
When they are fixed we get:
And they appear under "fixed":
|
Okay, all this SGTM! |
Add sharness tests to document existing mount bugs
Ah perfecto |
This uses test_expect_failure to document some bugs
related to 'ipfs mount'.
The mount bugs are discussed in issue #341.
When the bug will be fixed, we can just replace test_expect_failure with test_expect_success and the test suite will then fail if the bugs reappear.