Skip to content

Get currently executed test name in beforeEach #611

@nikku

Description

@nikku

TLDR; Is there a way to get the currently executed test case (its description derived from describe / it) in a beforeEach block?

What for?

Assuming I have a test runner that performs some sort of visual job on the screen (e.g. drawing SVG elements).

I provide each test case with a container to draw on and want the result to be inspectable by a user. In addition, I would like to add a caption to each of the tests, so that the user can easier keep track of which drawing result belongs to which test execution.

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