Using Cucumber with an existing Vitest setup #5515
Replies: 1 comment 7 replies
-
|
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
charlieforward9
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been looking into using Cucumber to test integrations while using Vitest test the unit and component lifecycles. In practice, I am curious about a few things that seem incomplete about using these tools together in a seamless manner.
Writing Cucumber tests is distinct from Vitest tests. Given this, I imagine the coverages are not merged with the Vitest coverage report. I have not tested this myself, but I am curious if this is this possible to do? Particularly with an actions tool like vitest-coverage-report-action?
Using vitest-cucumber removes the 'quick-run' button that shows to the left of the line number on the
describe
,it
, ortest
lines in my test files, since it replaces these APIs with Cucumber-specificdescribeFeature
, etc method. I opened #62 to continue this conversation, but would like to know how likely it would be to see this come to fruition sometime soon.Using vitest-cucumber-plugin, does not seem any easier. Especially as it has not been contributed to in 9 months. Additionally, I am trying to use React Testing Library to render the component I am testing, which does not look to have any documentation/examples.
Given these points, it seems that my best bet is to keep Cucumber and Vitest separate. However, I'd like to hear back from some contributors who may be able to help me get a deeper understanding of this use case.
Beta Was this translation helpful? Give feedback.
All reactions