Skip to content

slowTestThreshold applies to the suite instead of individual tests #6534

@JesusTheHun

Description

@JesusTheHun

Describe the bug

From documentation :

threshold in milliseconds for a test to be considered slow

In practice, if a suite takes longer than slowtestthreshold, the suite is considered slow.
I expect a test to be considered slow, but not a suite based on the sum of its tests execution time.

Reproduction

https://stackblitz.com/edit/vitest-dev-vitest-rqmwvp?file=test%2Fbasic.test.ts

The threshold has been set to 100.

System Info

Stackblitz, `vitest@latest`

Used Package Manager

pnpm

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    Status

    Has plan

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions