Skip to content
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

xunit timestamp should be ISO8601 #38

Open
oost opened this issue Mar 22, 2017 · 0 comments
Open

xunit timestamp should be ISO8601 #38

oost opened this issue Mar 22, 2017 · 0 comments

Comments

@oost
Copy link

oost commented Mar 22, 2017

JUnit schema requires ISO8601 timestamps (https://github.com/windyroad/JUnit-Schema/blob/master/JUnit.xsd#L165).

Current implementation of the xunit reporter uses RFC1123 date stamps via toUTCString() (https://github.com/tapjs/tap-mocha-reporter/blob/master/lib/reporters/xunit.js#L65).

This could be fixed by using toISOString() instead.

Note: this bug exists in the mocha reporter as well
Note 2: this would be a breaking change

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

No branches or pull requests

1 participant