Replies: 2 comments
-
|
On the other hand, |
Beta Was this translation helpful? Give feedback.
-
|
I see. While I understand this is core behavior and unlikely to change, just want to leave my (purely subjective) opinion that it strips |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Before opening issues, I wanted to discuss what do you think about such behavior of Vitest.
We use different filtering options together, to run different sets of tests:
vitest tests/feature1 --testNamePattern="Create scheduled notifications"vitest tests/feature1 --exclude=**/*SEQ.test.ts"3 .
vitest tests/feature1/*SEQ.test.tsThose options provide same functionality in my mind.
But:
testNamePatternall other tests which does not match the pattern are marked as skippedexclude, tests in excluded files are not marked as skipped - they are absent from reportsSo in case of 1, I have 6 tests which run, and 200 tests which are marked as skipped. I didn't skip them. I just didn't want them to run :D
I skip the test, when I do
test.skipThis pollutes our results and skews stats.
I know workaround is to divide our tests into more subfolders or use file name filtering. But wouldn't it be nice, if
testNamePatternwould not skip all other tests and just omit them? Especially if we use--testNamePattern=Smokeas a way to designate smoke tests or other groups of tests.Beta Was this translation helpful? Give feedback.
All reactions