Skip to content

Allow access to the currently executing block object #538

@ddimtirov

Description

@ddimtirov

In order to improve the error reporting of our testing utils, we would like to have a ISpecificationContext#getCurrentBlock() method.

If the code is before any block, it should return a block of type SETUP and no text.

Ideally, the text of blocks returned by this method would have resolved #references, similar to the spec titles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions