-
Notifications
You must be signed in to change notification settings - Fork 0
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
Write unit tests for functions that are already in close-to-final form #6
Comments
Possibly unit-testable right now:
|
The test successful condition would be that the correct string is returned. Based on the name of the function, I'm almost in favor of nixing the check to see if the path exists (in the function, not your tests). Namely, if a user says "I want to use a cert at the default location", it might be better to have the check for the existence of the file somewhere else, or even allow the tool to error out if the file doesn't exist. That way, we could plug in the eventual code you write to automate getting the correct credential. THAT code can check for the existence of the credential at the right place. What do you think? |
To Test:
|
As the title says. For new functions, we should test them, and I leave it to the developer whether or not to do something TDD-like, or write the test afterwards.
The text was updated successfully, but these errors were encountered: