Test the examples against recorded output #77
Labels
No labels
bug
design
duplicate
enhancement
maintenance
prospective
question
todo
ui
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: StudioInfinity/dyna3#77
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
During development, I often record the printed output of the examples and compare it against a previous recording to make sure it hasn't changed. It would be useful to automate this test.
Implementation ideas
The approach described in "Testing input and output in Rust command line applications" should work well for us. We'd just need to replace
print!
withwrite!
in the examples, as described here.