Skip to content
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

Unit Test cases missing? #3

Open
colachg opened this issue Jul 4, 2020 · 2 comments
Open

Unit Test cases missing? #3

colachg opened this issue Jul 4, 2020 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@colachg
Copy link

colachg commented Jul 4, 2020

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?

@mholt mholt added the help wanted Extra attention is needed label Jul 6, 2020
@mholt
Copy link
Contributor

mholt commented Jul 6, 2020

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!

@colachg
Copy link
Author

colachg commented Jul 7, 2020

Thanks. I have found some inspiration on this project. I hope this will help someone like me :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants