-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
v3(tests): use testify for assertion #2036
Conversation
I'm not very familiar with our PR merging workflow, can I just merge it or I should wait another maintainer to do it 🤔 @efectn |
Just wait for the maintainers. You can merge little things like dependencies updates, documentation or test update, but should wait for big decisions. |
And best never merge your own code without feedback from others, otherwise no one can give feedback. |
Testify is OK to me since it has more detailed output and better methods. |
Just don't know if we should do that Hope in version 3 we can follow this idea as good as possible, so if it is not absolutely necessary, we should not make ourselves dependent |
I think v3 has less deps than v2 at the moment. We can also write custom extractor instead of using |
I want say that vendoring go package in |
Yes I agree, that's why I have already allowed some dependencies My only question is if we got along with our native test functions so far, do we really need an extra package? |
that dependent on why we need to "have as little dependence as possible" I think 🤔 To make user download less code or something else? |
One dependency quickly becomes several, when the next developer wants to write his test with other libs we suddenly have a lot of dependencies. But if we don't allow these from the beginning and extend our internal test function a bit, we would be free from these decisions. I'll look at the code later which assertion is not possible with our internal function |
I think we can have some code style guide about this...
there isn't, all assertions are possible in our internal function, I just use some I think that it's better to use a popular assertion libaray than writing many our own assertion (or use a AssertEqual in many style) for maintaining |
Please provide enough information so that others can review your pull request:
close #2035
Explain the details for making this change. What existing problem does the pull request solve?
replace all
utils.AssertEqual
withtestify/require