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
Something like expect.snapshot
#1214
Comments
Hi, This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. |
I believe this was done by @MarkMcCulloh |
@staycoolcall911 my apologies - I think the issue might have not been explained well. 😅 I rewrote the description to explain how this would be part of Wing's built-in testing functions - let me know if it makes better sense. |
Snapshot format should be a markdown file that shows the output directory in a beautiful and attractive and GitHub readable format. Credits: @MarkMcCulloh |
Community Note
Feature Spec
Starting in Wing v0.x,
wing test
now saves test snapshots when thematches_snapshot(json)
function is used:After the first time running the test, an
app.w.snap
file will be generated containing a sequence of recorded snapshot values associated with each test.Use Cases
Asserting that outputs generated by user code is as expected.
See https://blog.janestreet.com/the-joy-of-expect-tests/
Implementation Notes
Do snapshots for preflight and inflight require different APIs or mechanisms?
Perhaps we can try implementing this in userland first (using
extern
)Component
SDK, Development Environment
The text was updated successfully, but these errors were encountered: