cucumber / cucumber-java-skeleton

This is the simplest possible setup for Cucumber-JVM using Java.
MIT License
461 stars 623 forks source link

Failed gradle test task from the skeleton project. #75

Closed zpalazov closed 2 years ago

zpalazov commented 2 years ago

👓 What did you see?

Failed Gradle test task for the skeleton project.

The test task fails every time on a fresh cloned project.

✅ What did you expect to see?

Successful execution of the test task.

📦 Which tool/library version are you using?

The Gradle wrapper from the skeleton project. Run on Ubuntu 20.04.5 LTS

🔬 How could we reproduce it?

  1. I cloned the project
  2. After I run the test task as suggested in the documentation the output result is a failure. ./gradlew test --rerun-tasks --info
  3. `RunCucumberTest > Cucumber > Belly > io.cucumber.skeleton.RunCucumberTest.Belly - a few cukes FAILED io.cucumber.junit.platform.engine.UndefinedStepException: The step 'I wait 1 hour' and 1 other step(s) are undefined.

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

mpkorstanje commented 2 years ago

Works as expected.

https://github.com/cucumber/cucumber-java-skeleton/blob/89050489d812d76a19741ba202e702bb68ab898a/README.md?plain=1#L3-L8

It's even tested.

https://github.com/cucumber/cucumber-java-skeleton/blob/89050489d812d76a19741ba202e702bb68ab898a/.github/workflows/build.yml#L31-L35

:smile:

zpalazov commented 2 years ago

./gradlew test

Task :test FAILED

RunCucumberTest > Cucumber > Belly > io.cucumber.skeleton.RunCucumberTest.Belly - a few cukes FAILED io.cucumber.junit.platform.engine.UndefinedStepException at TestCaseResultObserver.java:69

1 test completed, 1 failed

FAILURE: Build failed with an exception.

mpkorstanje commented 2 years ago

To clarify, the failure is expected. If you were to implement the missing steps, you'd get a passing project.

zpalazov commented 2 years ago

Thanks for your time and the clarification!