Skip to content

Small example of how to use Cucumber in a Java 17 project with JUnit5

Notifications You must be signed in to change notification settings

ingomohr/cucumber-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build

What's This?

This is a small example of how to use Cucumber in a Java project (Java 21, JUnit5)

It's based on:

... and a little bit of StackOverflow and Copilot

What are my Take-Aways in General?

  • 🥳 BDD as executable specs is great
  • ❓ Refactoring step defs w/o IDE integration must be pita
    • Integration in VSCode is kinda helpful in these matters, though
  • 👍 for cucumber-archetype Maven plugin (which I didn't use because I wasn't patient enough to read the docs beforehand ;))
  • 👍 for the very readable console output when building w/ mvn
  • ❓ No support for boolean parameters oob?
  • 👍 You can specify your own parameter types, though

What are my IDE-Integration Take-Aways?

  • The VSCode extension works well-ish and is (according to the Github repo) frequently updated
  • Didn't try the Eclipse integration
    • There is a 2.0.0 snapshot updatesite that cannot be installed
    • There is a 1.0.0 build that's from 2021
    • The last official release was in 2018, apparently
    • Might try that one later as there are commits coming in

About

Small example of how to use Cucumber in a Java 17 project with JUnit5

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published