Skip to content

Improve the missing backends exception #2697

Open
@mpkorstanje

Description

@mpkorstanje

🤔 What's the problem you're trying to solve?

When users encounter this exception:

io.cucumber.core.exception.CucumberException: No backends were found. Please make sure you have a backend module on your CLASSPATH.

	at io.cucumber.core.runtime.BackendServiceLoader.get(BackendServiceLoader.java:39)
	at io.cucumber.core.runtime.BackendServiceLoader.get(BackendServiceLoader.java:33)
	at io.cucumber.core.runtime.SingletonRunnerSupplier.creat

It is not clear at all what they've done wrong.

✨ What's your proposed solution?

Improve the exception. Explain that Cucumber consists of

  • something to run Cucumber (cucumber-core)
  • something to declare step defintions (the backend)
  • optionally a DI container.
  • optionally integration with JUnit4/5/TestNG/ect

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions