Skip to content

Support customized junit report format  #3691

@InfiniteXyy

Description

@InfiniteXyy

Clear and concise description of the problem

Currently, when using reporters: ["junit"], only testsuites is configurable, could we also make classNameTemplate andtitleTemplate comfigurable, so that I can use custom seperator between classname and title, or remove classname totally.

await this.writeElement('testcase', {
classname: filename,
name: task.name,

Suggested solution

In jest-junit there are some configurable env values, like JEST_JUNIT_CLASSNAME

and we also have VITEST_JUNIT_SUITE_NAME in vitest, we could add more env variables to help config the junit output

Alternative

No response

Additional context

The configratuion for jest-junit documentation:
https://github.com/jest-community/jest-junit#configuration

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions