-
Notifications
You must be signed in to change notification settings - Fork 26
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
cmd/qtify #95
Comments
Yes, I've been wanting to do this for ages! |
I'd start with the |
bikeshedding on the name: |
(Disclaimer: I am the author of gotest.tools/v3/assert) In case anyone is interested in a tool that does exactly this for a different assertion library gty-migrate-from-testify does this translation for It will rewrite all the common assertions directly, and print a line to stdout for any less-common assertion that could not be translated (which is generally a small number in my experience running the tool on large code bases). As I mentioned in #94 (comment), there are many similarities with these two libraries. |
@dnephin very interesting, thanks for pointing us to that! |
Damn, this would have saved me at least ten hours of work over the last year :) Happy to help test one such tool. |
I’d love a source code rewriter that ports existing tests to quicktest. Could start with just the low-hanging fruit, the obvious cases. Bonus for also rewriting from testify. :)
With appropriate docs or a flag, it could even do slightly-semantic-changing things like
err != nil
toqt.IsNonNil
.The text was updated successfully, but these errors were encountered: