Refactor tests to remove test fixtures and serial crate #10
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: dkanus/Avarice#10
Loading…
Reference in New Issue
Block a user
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?
serial
crate is required only because tests use the same test files, so they cannot read/write them at the same time.Replacing serial with something like tempfile and moving test data from files into code will allow tests to run in parallel, making their execution faster and also prevent test data from becoming corrupted by misbehaving tests.
serial
was removed as a dependency, tests were rewritten to use separate temporary files.Unnecessary files are cleaned up with auxiliary struct with the
drop
trait, which seems to work just fine and does not require another dependency. Maybe just keep this solution or istempfile
superior in some way?Do we really need to move test data into the code? I feel like separating them is a cleaner approach.
Nvm then.