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

Testing for CLI commands #29

Open
saurabhdaware opened this issue Oct 18, 2019 · 1 comment
Open

Testing for CLI commands #29

saurabhdaware opened this issue Oct 18, 2019 · 1 comment
Labels
Needs discussion If something needs to be discussed or when need opinion on something Testing Issue related to testing

Comments

@saurabhdaware
Copy link
Owner

the functions in helper.js are straight forward we can simply write unit tests (Checkout #28 if you're interested in writing unit test for lib/helper.js) but lib/action.js is comparatively complicated to test since it asks for user inputs.

If you know about any way of handling these user inputs through testing do let me know here :D

@saurabhdaware saurabhdaware added Testing Issue related to testing Needs discussion If something needs to be discussed or when need opinion on something labels Oct 18, 2019
@saurabhdaware
Copy link
Owner Author

working on a library to solve for user inputs in clis https://github.com/saurabhdaware/cli-testing-library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs discussion If something needs to be discussed or when need opinion on something Testing Issue related to testing
Projects
None yet
Development

No branches or pull requests

1 participant