amiceli / vitest-cucumber

Use gherkin in your unit tests with vitest
https://vitest-cucumber.miceli.click
25 stars 2 forks source link

feat(gherkin): add gherkin Background #60

Closed amiceli closed 1 month ago

amiceli commented 3 months ago

This PR is to add Background functionnality. I will implement these rules :

NomanChali commented 2 months ago

When are you planning to merge this PR?

amiceli commented 2 months ago

I'm still working on it (event if we don't see commit :)) to run background correctly before each scenario (for feature and rule). I can publish a a beta version if you want to test it.

Otherwise I will merge it this week.

NomanChali commented 2 months ago

I'm still working on it (event if we don't see commit :)) to run background correctly before each scenario (for feature and rule). I can publish a a beta version if you want to test it.

Otherwise I will merge it this week.

Thanks for your quick response beta version would be helpful

amiceli commented 2 months ago

Ok, I'm working on a fix for scenario and background call order (with feature and rule). I will publish a beta version ;) I will put a message one this PR.

amiceli commented 2 months ago

@NomanChali I've publish 3.3.0-beta.2 version. You can use Background in feature and rule(s).

I'm still working on it but you can test it. I tried this beta version on some projects, tests still pass ;).

amiceli commented 1 month ago

To give some news. Code is ok, I'm working to improve unit tests for Background feature. And fix cli-generate command, I've error with esm, not esm, commonJs etc ^^.