Introducing, glob-sort: a better way to custom sort test file execution order. #32697
Unanswered
bvandercar-vt
asked this question in
Plugins
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Do you want to set a custom test execution order, but want a better way than prefixing all your test files with numbers (i.e.
01-setup.spec.ts,02-form.spec.ts), or using the default minimatch in CypressspecPatternconfig (which doesn't always order things correctly)?Introducing my new package, glob-sort. It sorts by any prefixed numbers, then by passed custom keywords or regex patterns, then finally, alphabetically.
Example usage in
cypress.config:Results:
Beta Was this translation helpful? Give feedback.
All reactions