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

Fails when addon blueprint causes an interactive prompt #157

Open
simonihmig opened this issue Sep 18, 2017 · 3 comments
Open

Fails when addon blueprint causes an interactive prompt #157

simonihmig opened this issue Sep 18, 2017 · 3 comments

Comments

@simonihmig
Copy link
Collaborator

When the addon under test has a default blueprint that causes an interactive prompt to appear (either by programmatically calling that or because ember-cli asks whether to overwrite files), the ember generate my-addon call will never terminate, causing a timeout in tests. Probably the same happens when app.runEmberCommand is called that causes a prompt.

Related: kaliber5/ember-fastboot-addon-tests#15

@simonihmig
Copy link
Collaborator Author

Tbh, I don't see an easy solution, @kellyselden do you?

@kellyselden
Copy link
Collaborator

@kimroen
Copy link

kimroen commented Sep 18, 2017

Yeah, it looks like it can be handled. I guess the question would be - what kind of control would we want to add for the user? Go with the default for all the prompts, allow a hash with question and answer, regex match for questions mapped to answers? Something easier?

In my particular case described in the linked issue, ember cli is asking if I'd like to overwrite a file, and I'd like to answer "no". The default is "yes".

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

No branches or pull requests

3 participants