bencompton / jest-cucumber

Execute Gherkin scenarios in Jest
Apache License 2.0
660 stars 118 forks source link

Integration tests #148

Open bencompton opened 2 years ago

bencompton commented 2 years ago

While the examples are useful as E2E tests, they alone don't provide adequate test coverage, so integration tests are needed. Most of the logic in Jest Cucumber can be integration tested by eliminating Jest and dependency injecting a mock test runner. The following has been done so far as part of this effort:

Feature file automation progress

thelinuxlich commented 1 year ago

I'm using latest jest-cucumber from master branch and can confirm I'm able to inject Vitest using createDefineFeature!

halvardssm commented 1 year ago

@thelinuxlich Could you share the steps you took for this? 🙏🏻

thelinuxlich commented 1 year ago

@halvardssm sure, look at this repo, I've created an example demonstrating it: https://github.com/thelinuxlich/svelte-atdd-vitest-playwright

pplancq commented 7 months ago

Hello @bencompton,

Would it be possible to take stock of the situation quickly? To find out what still needs to be done, unless you confirm that it is already up to date.

You could also pin this issue and add a 'work-in-progress' label, so that each contributor can see what remains to be done, and indicate here what they are working on to improve the test coverage.

bencompton commented 7 months ago

@pplancq - I'm planning to work on this incrementally over the next several days until test coverage is where it needs to be. This can happen in parallel with other work, though.

pplancq commented 6 months ago

@bencompton didn't hesitate to put the work-in-progress label to prevent the stale workflow from closing this exit.

kornicameister commented 6 months ago

@bencompton any news here, maybe a PR to rely on. I checked the code that was supposed to be found on master but now we have main branch and the signature of createDefineFeature does not seem to allow injecting anything in there.