Skip to content

Add Cucumber Kotlin Junit5 example #2999

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 30 commits into from
May 23, 2025

Conversation

jit3pam
Copy link
Contributor

@jit3pam jit3pam commented May 16, 2025

🤔 What's changed?

Added the module cucumber-kotlin-junit5 in examples

⚡️ What's your motivation?

I am a developer, who is progressing on the goal of becoming test automation architect. I value BDD as a way to build clear, testable, and business oriented software. I noticed recently that some Kotlin developers have also integrated with cucumber-jvm in test automation work. I also got opportunity to learn Kotlin.

To support Kotlin users and my own learning, I have created a cucumber-kotlin- module after taking inspiration from cucumber-java-testng module.

My contribution intent is:

  1. To deepen the knowledge on Kotlin and cucumber-jvm integration
  2. To support Kotlin users with more test automation examples
  3. To collaborate with Kotlin developers in automation projects

🏷️ What kind of change is this?

  • ⚡ New feature (non-breaking change which adds new behaviour)

♻️ Anything particular you want feedback on?

I will be grateful to the community to provide suggestions on improving the examples.

📋 Checklist:


This text was originally generated from a template, then edited by hand. You can modify the template here.

Copy link
Contributor

@mpkorstanje mpkorstanje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the example!

As this is primarily a Kotlin example, would it be possible to use JUnit 5 as the test runner instead of TestNG? When using JUnit 5, please also use the JUnit BOM (see the other examples).

Now that JUnit 5 exists I would not expect JUnit 4 to be used.

@jit3pam jit3pam changed the title Cucumber Kotlin TestNG examples Cucumber Kotlin Junit5 examples May 21, 2025
@jit3pam jit3pam requested a review from mpkorstanje May 21, 2025 17:16
@mpkorstanje mpkorstanje changed the title Cucumber Kotlin Junit5 examples Add Cucumber Kotlin Junit5 examples May 23, 2025
@mpkorstanje mpkorstanje changed the title Add Cucumber Kotlin Junit5 examples Add Cucumber Kotlin Junit5 example May 23, 2025
@mpkorstanje mpkorstanje merged commit 715ff92 into cucumber:main May 23, 2025
6 checks passed
@mpkorstanje
Copy link
Contributor

Cheers!

@jit3pam
Copy link
Contributor Author

jit3pam commented May 23, 2025

Cheers!
Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants