Skip to content

Experimental vitest junit outputFile option #30442

Closed

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.

Activity

  1. added theissue type on Jun 3, 2025
  2. joergbaier commented on Jun 3, 2025

    @joergbaier

    related issue to allow for vitest configuration #30429

  3. angular-automatic-lock-bot commented on Oct 17, 2025

    @angular-automatic-lock-bot

    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.

  4. locked and limited conversation to collaborators on Oct 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    angular/build:unit-testarea: @angular/buildfreq1: lowseverity3: brokentype: bug/fix

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions