You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Instead of supporting environment variables we should open an API for providing reporter options. The coverage reporters already support this kind of API:
Clear and concise description of the problem
Currently, when using
reporters: ["junit"]
, onlytestsuites
is configurable, could we also makeclassNameTemplate
andtitleTemplate
comfigurable, so that I can use custom seperator between classname and title, or remove classname totally.vitest/packages/vitest/src/node/reporters/junit.ts
Lines 167 to 169 in f91da48
Suggested solution
In
jest-junit
there are some configurable env values, likeJEST_JUNIT_CLASSNAME
and we also have
VITEST_JUNIT_SUITE_NAME
in vitest, we could add more env variables to help config the junit outputAlternative
No response
Additional context
The configratuion for
jest-junit
documentation:https://github.com/jest-community/jest-junit#configuration
Validations
The text was updated successfully, but these errors were encountered: