Skip to content

Extend variant in snapshot testing #1938

Open
@pawelru

Description

@pawelru

For more sophisticated testing strategy (e.g. multiple mutually exclusive sets of variants: a1/a2/a3/... in conjunction with b1/b2/b3/... in conjunction with ...) it would be great to extend variant argument to accept a representation of directory structure. It could be a string representing path (e.g. string a1/b1/c1 which creates _snaps/a1/b1/c1 directory) or vector of strings (e.g. c("a1", "b1", "c1") which creates _snaps/a1/b1/c1).
Right now it's needed to collapse that structure into a single string (e.g. "a1_b1_c1") which then creates many many directories under _snaps. This is not super convenient to browse and use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions