Skip to content

Experimental vitest junit outputFile option #30442

Open
@mlh758

Description

@mlh758

Command

test

Description

After upgrading to Angular 20 the old karma junit reporter library stopped working for us. Happily, the vitest runner directly supports junit. However, it doesn't seem like there is a way to pass an option for the output location of that test output and the docs make it seem like there isn't currently a way to configure vitest directly.

Describe the solution you'd like

I'd love a way to direct the junit reporter's output to a file so our CI tools can more easily consume it. Right now I'm using awk to find the start of the junit xml and pipe that to a file.

Describe alternatives you've considered

Using awk to separate the build output from the junit output when running ng test.

If there was a way to create a configuration file for vitest to access the options like there was for Karma that would be fine too.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions