-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Improve TAP Output #723
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
Comments
Probably related to this is the fact that
Jenkins output looks like this:
|
@xjamundx Can you post the actual tests that are giving you the strange XML output? I just tried |
@sotojuan it needs to be spread across multiple files:
running this command
The issue (from what I can tell is the little <?xml version="1.0"?>
<testsuites>
<testsuite name="test › this is ta thing" tests="1" failures="0" errors="0">
<testcase name="#1 test › this is ta thing"/>
</testsuite>
<testsuite name="test2 › this is ta thing" tests="1" failures="0" errors="0">
<testcase name="#2 test2 › this is ta thing"/>
</testsuite>
</testsuites> The test I'm using is: var test = require('ava')
test('this is ta thing', t => t.pass()) |
Thanks for the feedback. I'll look into it later today. @sindresorhus would this be something we can fix (the arrows are not valid XML characters) or is that the responsibility of tap reporters? |
That's something the reporter should fix. We can't possible correctly escape our titles for every possible scenario. |
Thanks for the tip @sindresorhus |
It seems we also incorrectly include some ansi escape codes in the title (The actual issue is still that the reporter doesn't escape the title though) |
Thanks for following up. I'll get on the tap-xunit folks about fixing it on their end. |
Can anyone confirm if the todo output is correct? The Edit: |
@xjamundx We fixed the ANSI escape codes—let us know how they are now. |
Woohoo! On Fri, Apr 29, 2016 at 11:07 AM Juan [email protected] wrote:
|
This issue isn't directly actionable. I'm starting to update open TAP-related issues with the |
There are lots of open issues regarding TAP output:
Remaining todo's from #340 (comment)
node-tap
. Specifically, the yaml output for our errors. This should make the output from all the tap-mocha-reporters much nicer. For example, our errors currently haveexpected
andactual
properties, but the tap reporters prefer found and wanted. Also, we should usestack-utils
to attach theat
property (file name and line number of failure).tap-emitter
and integrate into AVA.Notes:
We should be using the TAP v14 draft specification.
Note that the spec does not address what properties should be included in the yaml blocks. In that case we should just emulate
node-tap
(see list item above for examples of properties we need to add).The text was updated successfully, but these errors were encountered: