vendor: add github.com/stretchr/testify test dependency#15457
Conversation
github.com/stretchr/testify is a useful library for doing assertion in tests. It makes assertions in test more less verbose and more comfortable to read and use.
|
It seems odd to me to vendor a package which isn't actually being used. Is there a specific test which would benefit from this? Perhaps an example showing the benefits of this package would be useful. |
|
@lmars , Initially I've added this package as a part of another PR: #15452 . However they asked me to introduce it separately. So here I am to propose inclusion of it. Then I will update my tests and add few more. The advantage of |
|
I concur with @lmars on this one. There's no point to pull in unused code into the repository. If a PR needs it, then that PR needs to pull in the necessary dependencies. That being said, I'd like a discussion to happen first on bringing in a new testing framework before there's even code doing it. A new test framework means that we either need to rewrite all of our tests, or all of a sudden we'll have two different test styles. I'm willing to accept such a new framework as long as there's consensus with @Arachnid and @fjl (and myself). Why is this a good thing? |
|
To clarify: vs |
|
I would love to see more concise tests. |
github.com/stretchr/testify is a useful library for doing
assertion in tests. It makes assertions in test more less verbose and
more comfortable to read and use.
Testify plays nice with default Go testing package and includes three
convenient packages: assert, require, and mock.
This PR contains only the addition to of testify package to dependency
in order to use it in future tests.