You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read this wiki, I can't find test cases though it works. I'm trying to write another provider, but I don't know how to write test cases, how to write unit cases for third-part API. Is there any tips?
The text was updated successfully, but these errors were encountered:
Ah, yeah, I never got around to writing test cases for this package (it was the very first one) and the guidelines for implementing new providers was written afterward.
Since this is also kind of a reference implementation, it should probably have unit tests. Unfortunately I won't have time for a while to work on that. :( However, anyone is welcome to contribute them!
To answer your question, though, just use Go's standard testing package: https://golang.org/pkg/testing/ -- that's about all there is to it!
I have read this wiki, I can't find test cases though it works. I'm trying to write another provider, but I don't know how to write test cases, how to write unit cases for third-part API. Is there any tips?
The text was updated successfully, but these errors were encountered: