You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
Running tslint -o lint-results.xml -t junit -p tsconfig.json on a lint-free project results in an xml file with an empty <testsuites> element. While this is acceptable by some consuming tools, others reject it. Unfortunately for me, the latter includes Jenkins. Jenkins hits a non-breaking error trying to consume lint-results.xml, and skips it. Which makes generating the file in the first place pointless.
Before you added the core junit formatter, we could use tslint-junit-formatter, whose last commit before then seems to have been a fix for this very issue. But because tslint prioritises its own core formatters over external ones with the same name, this formatter can no longer be used (it's mostly redundant except for that one fix, anyway).
Expected behavior
A single "success" <testsuite> element is generated inside the <testuites>, and Jenkins is able to consume it (as is Bamboo, which has the same problem, according to the referenced tslint-junit-formatter issue).
I will say I'm happy to submit a PR for this one, if you'll have me!
The text was updated successfully, but these errors were encountered:
Bug Report
Actual behavior
Running
tslint -o lint-results.xml -t junit -p tsconfig.json
on a lint-free project results in an xml file with an empty<testsuites>
element. While this is acceptable by some consuming tools, others reject it. Unfortunately for me, the latter includes Jenkins. Jenkins hits a non-breaking error trying to consumelint-results.xml
, and skips it. Which makes generating the file in the first place pointless.Before you added the core junit formatter, we could use tslint-junit-formatter, whose last commit before then seems to have been a fix for this very issue. But because tslint prioritises its own core formatters over external ones with the same name, this formatter can no longer be used (it's mostly redundant except for that one fix, anyway).
Expected behavior
A single "success"
<testsuite>
element is generated inside the<testuites>
, and Jenkins is able to consume it (as is Bamboo, which has the same problem, according to the referenced tslint-junit-formatter issue).I will say I'm happy to submit a PR for this one, if you'll have me!
The text was updated successfully, but these errors were encountered: