-
Notifications
You must be signed in to change notification settings - Fork 1
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
Simplify by using mocha's tap reporter #4
Conversation
Advantages: * Smaller, simpler code * Human readable by default * Easy to pipe into tap reporters like tap-{spec,nyan,etc}
With all the mocha reporters integrated, output will also be human readable by default. Why didn't the mocha-reporter (can't remember the name) approach work? And iirc tap didn't have all the information mocha reporters need. |
Felt cleaner to me because:
I feel this is a pretty elegant until there is a well defined intermediate format for mocha runs. |
Is there a format that has all the info?
I'd make the default the
Hmmm yeah I'll merge this for now until we have a proper mocha solution |
} | ||
var tap = parser(); | ||
|
||
ps.stdout.on('data', function(line){ process.stdout.write(line.toString()) }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
semicolons
I don't think so. I don't think it would be too hard though.
Yeah I just wanted something quick that wasn't ugly. An updated json-stream reporter combined with mocha-report would be nice eventually to get the full suite output.
Hmm I used to have this linted with syntastic, not sure what happened. Will update... |
👍 linted |
Simplify by using mocha's tap reporter
sweet, released as 1.0.0 |
Advantages:
tap-{spec,nyan}
etcHere's what it looks like now:
Piping to a reporter:
$ mocha-broken | tap-spec
Let me know what you think