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

chore: added initial stdin and stdout interactivity tests #287

Merged
merged 14 commits into from
Nov 23, 2021

Conversation

crutchcorn
Copy link
Member

This builds on top of @evelynhathaway's work in #267

This PR builds the scaffolding to test inquirer's interactivity on the CLI level rather than going forward to mock out any of the functionality. This is the start of true e2e testing (from a user's perspective) of Plop.

I'll be adding more valid tests in the coming weeks, but this PR is now able to functionally validate user input against existing inquirer prompts

@crutchcorn crutchcorn mentioned this pull request Oct 18, 2021
@crutchcorn
Copy link
Member Author

Significantly more work has gone into the infra of this PR. In fact, it's now its own package:

https://github.com/crutchcorn/cli-testing-library

@crutchcorn
Copy link
Member Author

This PR seems ready to go finally. I'm going to add GitHub actions support to run tests on every PR to make sure they pass before merging

Worth mentioning: It's using an @alpha tagged version of a home-grown library in the vein of Testing Library. This home-grown lib can be seen here:

https://github.com/crutchcorn/cli-testing-library/

@crutchcorn crutchcorn merged commit 77f42ee into master Nov 23, 2021
@crutchcorn crutchcorn deleted the stdio-tests branch November 23, 2021 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant