making the mocked prompt question and answers visible#423
Closed
pwmckenna wants to merge 1 commit intoyeoman:masterfrom
Closed
making the mocked prompt question and answers visible#423pwmckenna wants to merge 1 commit intoyeoman:masterfrom
pwmckenna wants to merge 1 commit intoyeoman:masterfrom
Conversation
Member
|
May I ask why? IMO, I hate to see Yeoman STDout output when I'm testing - there's too much already. |
Contributor
Author
|
It was frustrating to me that I couldn't see exactly what the user will see, without manually testing. I agree that in a lot of cases, there's too much flying by, but I'd rather show everything as the user would see it, or nothing. Perhaps a seperate output toggle? |
Member
|
Well, your unit test are there to test functionality, not visual output - this is the task of integration tests. Nonetheless, as you're mocking the prompt, there's no guarantee the output will be the same. As so, this is not a solution to your issue. If you wish to test the visual, try to find a command line integration testing tool. Unit test aren't suitable for this use case. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.