Hacker News new | ask | show | jobs
BDD in Deno with Cucumber
1 points by flodan 784 days ago
Hi all,

I was wondering if anyone here in the community has any experience with setting up Cucumber in a Deno project?

I am currently using CucumberJS in all my Typescript projects for integration testing and I am super happy with it. I wanted to switch to Deno for a while now but I just cannot get Cucumber to work natively in a Deno project (having the Cucumber setup as a separate TS project is no option for me). In the end I would love to have a task in my deno.json file that runs all my scenarios in all my feature files.

1 comments

If you're going Deno, I suggest trying the integrated test runner, it's quite good and the experience OOB is nice.
What I like about the Cucumber setup is the definition of Feature files in Gherkin that define your test scenarios and having the actual step implementations decoupled of that. This allows for very easy reusability of all my steps across multiple scenarios.

As far as I can see, this is not the way to go with the integrated test tooling (or not even possible).