Skip to content

Dynamic scenario discovery #70

@ChristopherHaws

Description

@ChristopherHaws

Have you considered using source generators instead of using embedded resources for the feature files? This might make it so tests could be dynamically discovered since source generators run at design time as well as build.

Some other possible features that could be enabled by using source generators:

  • The #line pragma could be used to make it so IDE's and debuggers know which file and line the generated code corresponds to. This would make it so that you shouldn't have to create custom IDE extensions.
  • The generated test method could reference the actual step method so that the codelense reference counts and Find All References on the step definitions would just work.
  • The #error and #warning pragmas could be used when a step definition could not be found to provide custom error/warning messages. This would provide design-time errors/warnings to without the need to build the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions