Refactor tests to remove test fixtures and serial crate #10
Loading…
Add table
Add a link
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?
serialcrate 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.
serialwas removed as a dependency, tests were rewritten to use separate temporary files.Unnecessary files are cleaned up with auxiliary struct with the
droptrait, which seems to work just fine and does not require another dependency. Maybe just keep this solution or istempfilesuperior 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.