-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Tap reporter can produce invalid output due to stack trace #1257
Labels
area: reporters
involving a specific reporter
status: accepting prs
Mocha can use your help with this one!
Comments
The following subset of the above passes InstantTap (and would work well in the Jenkins Tap plugin, which is my goal...) Prefixed all with "#"
|
@jreichenberg sounds good. Care to create a PR for this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: reporters
involving a specific reporter
status: accepting prs
Mocha can use your help with this one!
The tap reporter does the following on fail:
console.log(err.stack.replace(/^/gm, ' '));
Depending on the stack trace, this can produce invalid tap output. For example, a tap file with a stack trace from WebDriverJs is below...invalid (try it in http://instanttap.appspot.com/ ).
Ideas for sanitizing the stack trace?
Or providing an option to leave it on err.stack and not print it (so it can be potentially written as a file or written at the end)?
The text was updated successfully, but these errors were encountered: