-
Notifications
You must be signed in to change notification settings - Fork 2
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
Consider using gotestsum
#8
Comments
I beg to disagree 🙂 |
Thanks @alpeb. That makes sense to me. However, I still have a few more concerns over using
Just to clear my understanding, are we talking about directly using the integration tests for conformance validation? i.e, we'd have to then move all our conformance stuff into the upstream linkerd2 repo, right? (Because
I'd also like to add how I am not really sure if this significantly outweights the problem of new contributors having to learn a new testing framework, which is when the std |
Ah I hadn't considered the impossibility of exporting tests... How much overlap do you think there will be between conformance tests and integration tests? I think that's what's gonna determine whether we'd like to do the conformance tests in the same linkerd2 repo. |
@alpeb I'd say that the main body of the tests (the logic, assertions, etc.) would mostly be the same. But if we do plan on directly using the integration tests as they are, the only major drawback that I can think of is that the integration tests will not conform to our idea of having the tests be configurable using a YAML file. This would require major refactoring because the same tests now have to be configurable according to the CI as well as a YAML file (the conformance tool). |
Thanks for your considerations @mayankshah1607 🙂 |
gotestsum
can be used as a drop-in replacement for thego test
CLI, and we may want to consider using that. However, I don't yet see any obvious advantages over the current workflow:gotestsum
is only a CLI and not a testing framework likeGinkgo
to be able to replace itgotestsum
is meant for producing readable outputs while using the standardtesting
library; which would mean, we must make a big refactor to our existing ginkgo tests. It would then be a copy of the integration tests, in which case it just makes sense to reuse them rather than having them on a separate repo to prevent redundancy.The text was updated successfully, but these errors were encountered: