Skip to content

Feature Request: Adding glueClass to CucumberOptions #1707

Closed
@daMupfel

Description

@daMupfel

Summary

I was wondering if the project would be open to add something like this:

  /**
   * @return class(es) to look for glue code (step definitions and hooks).
   *         Optional.
   */
  Class<?>[] glueClass() default {};

To the CucumberOptions (which now seem to be split by test framework).

Context & Motivation

The use of actual classes allows the option for easier code refactoring (renaming the class containing the glue code will automatically also rename this since it is not a string).

We as well need a more fine granular configuration in our project on which classes should be loaded (we do have classes in the same package that should not be loaded together).

We currently have a custom runner based on an older cucumber version that implements this behavior for us.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🙏 help wantedHelp wanted - not prioritized by core team⚡ enhancementRequest for new functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions