-
Notifications
You must be signed in to change notification settings - Fork 122
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 Tests #67
Comments
Hi @eddiemonge, I'm stopping by just to say that I had done some tests on my grunt plugin that uses git commands in a very similar way they are used here on grunt-bump (in fact my plugin extends grunt-bump to provide a more gitflow-oriented release system). If you want to take a look at the tests it might give you some ideas. What I also did there was break the entire task in smaller modules/functions that can be easily tested. I might also be doing some big mistake there, so please let me know if you spot any ;) |
Thats similar to the rewrite im doing for this:
|
Sounds great! Let me know if there is anything I can help with. |
node-git is quite heavy package/dependency (compared to plugin itself). It tries to provide API for all git commands. And you plugin needs couple git commands with pretty stable set of options. Its acceptable to use node-git as dep when we writing a js-based git client. But here its usage will be an overhead Just my 5c. |
Tests for the dry run feature. With minor changes this could also be used for testing other features. May resolve vojtajina#67
@ZuBB I agree. If a simple mocked out git could be used that would be better |
Tests for the dry run feature. With minor changes this could also be used for testing other features. May resolve vojtajina#67
Tests for the dry run feature. With minor changes this could also be used for testing other features. May resolve vojtajina#67
Need to add tests to verify functionality. Open to suggestions on how to do this. Mostly looking for a way to mock the git calls.
The text was updated successfully, but these errors were encountered: