Skip to content

Allow attaching of metadata to a test (before it's run) #8404

@rebasecase

Description

@rebasecase

Clear and concise description of the problem

I'd like to be able to access additional information about the currently running test within beforeEach,

Suggested solution

Add a meta property to TestOptions which can then merged with any meta property defined in the test preserving existing functionality.

Alternative

  • Wrap each test in a separate describe block.
  • Matching in the test name .. e.g. ctx.task.name.startsWith(...)

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    p2-nice-to-haveNot breaking anything but nice to have (priority)

    Projects

    Status

    P2 - 2

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions