Closed Odonno closed 1 month ago
Yes it's a good idea to allow global option and I'm ok for ignore
.
Also language
can be added into default options. What do you think ?
Currently we used it in parser src/parser/parser.ts
.
I made all the changes required @amiceli
Thanks, everything is ok, I merge this PR. I will publish a new version with this feature and update vitest-cucumber docs.
setVitestCucumberConfiguration
to let users set a global configuration for the project, usually executed in asetupTests.ts
file in a Vite projectexcludeTags
so set a default tag exclusion for every feature/scenarii@ignore
Note: The default excluded tag is
@ignored
instead ofundefined
(from other js test library) to mimic the behavior of SpecFlow (see https://docs.specflow.org/projects/specflow/en/latest/Gherkin/Gherkin-Reference.html#tags). This is more opinionated but IMO I find it better this way in order to avoid defining a default tag exclusion ourself...Note 2: The current options pattern can be extended to host other variables in the future (e.g.
indludedTags
,loadRelativePath
, etc...)