Skip to content

Excessive JSON reporter output when used together with Allure reporter #8741

@just-boris

Description

@just-boris

Describe the bug

When I have this config

export default defineConfig({
  test: {
    setupFiles: ['allure-vitest/setup'],
    reporters: ['json', 'allure-vitest/reporter'],
  },
});

The JSON output contains allureRuntimeMessages field for each test, which can be many megabytes in size, because it contains all Allure extended data (screenshots, steps logging, etc).

Expected behavior – JSON reporter only renders known fields from Vitest itself

Reproduction

https://stackblitz.com/edit/vitest-dev-vitest-nunuaxrm?file=vite.config.ts,test%2Fbasic.test.ts&initialPath=__vitest__/

System Info

n/a, stackblitz used

Used Package Manager

npm

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    feat: reportersIssues and PRs related to Vitest reportersp2-nice-to-haveNot breaking anything but nice to have (priority)

    Projects

    Status

    Approved

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions