这是indexloc提供的服务,不要输入任何密码
Skip to content

Summarize failed tests #4

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

Closed

Conversation

khanh-nguyen
Copy link

A little summary at the end can be useful when the log is long.

function summarizeErrors(errors) {
var summary = chalk.underline.bold('\n\nTests that failed:\n');

_.each(errors, function(error) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could use errors.forEach and not need to add lodash as a dep, unless we're concerned about supporting really old versions of Node.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 You're right. It's a bit overkill as well.

@NickHeiner
Copy link

@khanh-nguyen can you include a picture or console output copy/paste in the PR description of what this change looks like?

@khanh-nguyen
Copy link
Author

@NickHeiner my bad, I didn't see this message until now. Here's a screenshot of how the result looks like.

screen shot 2016-03-17 at 1 40 33 am

@khanh-nguyen khanh-nguyen force-pushed the summarize-failed-tests branch from b48b0a6 to 6e5007b Compare March 17, 2016 14:26
@namuol
Copy link
Owner

namuol commented Jun 14, 2016

Closing since the recently-added -p flag (0.5.0) helps remove noise.

@namuol namuol closed this Jun 14, 2016
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.

3 participants