Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

How to output junit report to a file? #1352

Copy link
Copy link
Closed
@cawoodm

Description

@cawoodm
Issue body actions

Sorry for posting this here - I've read all the docs and can't find a solution.

When running eslint via the vue-cli (or directly with npx eslint) using a junit output format there seems to be no option to output to a file. Similar to this issue we need to support a -o parameter.

What doesn't work

In all these cases the output is on stdout instead of to a file:

  • vue-cli-service lint --format junit -o output.xml
  • vue-cli-service lint --format junit --output-file output.xml
  • npx eslint --format junit -o output.xml
  • npx eslint --format junit --output-file output.xml
  • npx eslint --format junit --out output.xml

What sometimes works

Redirecting with > only works if there are errors reported in XML format. If there are no errors the XML contains plain text and is therefore invalid:

  • npx eslint --format junit > output.xml
  • DONE No lint errors found!
  • Done in 24.30s.

Any help would be much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.