vitest icon indicating copy to clipboard operation
vitest copied to clipboard

Use trace to locate the position of tests and suites

Open antfu opened this issue 3 years ago • 3 comments

antfu avatar Dec 15 '21 09:12 antfu

what is the goal of this issue?

Aslemammad avatar Dec 15 '21 20:12 Aslemammad

  • #113
  • Allocate suite in VS Code integration
  • Show suite path with line number in error

antfu avatar Dec 15 '21 20:12 antfu

Is it possible to run tests with a specified line number? For instance, the following command runs a test at line 20.

$ vitest --run test/basic.test.ts:20

yesmeck avatar Dec 20 '21 19:12 yesmeck

Partially supported in 1.4.0 (we report the number): https://vitest.dev/config/#includeTaskLocation

It would be nice to also support a filter with :number

sheremet-va avatar Mar 28 '24 07:03 sheremet-va

Closed in favour of #5445

sheremet-va avatar Mar 28 '24 09:03 sheremet-va