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

execution-plan: Use snapshot tests for program memory #35

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

adamchalmers
Copy link
Collaborator

This saves a "snapshot" of program memory (visualized as a table) into the repo. When you rerun the "draw cube via API" unit test, it'll compare the snapshot to what's on disk and fail if there's a change (like expectorate or twenty-twenty).

Use cargo insta review for reviewing changes and accepting/rejecting them.

This saves a "snapshot" of program memory (visualized as a table) into the repo. When you rerun the "draw cube via API" unit test, it'll compare the snapshot to what's on disk and fail if there's a change (like expectorate or twenty-twenty).

Use `cargo insta review` for reviewing changes and accepting/rejecting them.
Copy link

codecov bot commented Dec 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@9835418). Click here to learn what that means.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #35   +/-   ##
=======================================
  Coverage        ?   44.08%           
=======================================
  Files           ?       29           
  Lines           ?     1826           
  Branches        ?        0           
=======================================
  Hits            ?      805           
  Misses          ?     1021           
  Partials        ?        0           
Flag Coverage Δ
unittests 44.08% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@adamchalmers adamchalmers merged commit 0452e25 into main Dec 18, 2023
7 of 8 checks passed
@adamchalmers adamchalmers deleted the achalmers/snapshot-tests-memory branch December 18, 2023 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant