Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend variant in snapshot testing #1938

Open
pawelru opened this issue Mar 5, 2024 · 0 comments
Open

Extend variant in snapshot testing #1938

pawelru opened this issue Mar 5, 2024 · 0 comments
Labels
feature a feature request or enhancement snapshot 📷

Comments

@pawelru
Copy link

pawelru commented Mar 5, 2024

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.

@hadley hadley added feature a feature request or enhancement snapshot 📷 labels Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement snapshot 📷
Projects
None yet
Development

No branches or pull requests

2 participants