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
Add initial tests to auth command #83
Conversation
…ript into add_tests
Nice work @lricoy! So glad to finally have some tests. I'll try to review this one over the weekend. Also curious to see if @aurelienshz has any feedback. |
In a close future I feel like we should write a decent mock for the fs module, since we are testing a lot of things related to reading from / writing to the disk, and actually hitting the disk can be slow and unreliable. But I think for now using /tmp for the auth module is fine (since we only write a single file). This looks pretty nice, but when running the test it hangs after the end and never gives back the prompt. Have you encountered this problem? |
Apparently, the issue is that the server that gets started by |
Nicely done @aurelienshz I agree with mocking the I will take a look at writing somewhat functional tests instead of unit ones so we can have it running on a CI server and may allow it to hit the filesystem and google's servers. |
Sorry @lricoy, I didn't find time to review in depth. It looks @aurelienshz has your back on the review (thanks bud!) I have been following the conversation and I do like your suggestion to stick to functional/integration tests over unit for now, for the purpose of testing the whole module with a minimal amount of tests in the beginning. Great job so far! |
Hey @danthareja . No worries. Yeah, I think we are all in sync. Will merge this one so we can move forward. |
No description provided.