angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Experimental vitest junit outputFile option

Open mlh758 opened this issue 6 months ago • 1 comments

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.

mlh758 avatar Jun 02 '25 13:06 mlh758

related issue to allow for vitest configuration https://github.com/angular/angular-cli/issues/30429

joergbaier avatar Jun 03 '25 16:06 joergbaier

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.