Write tests for Lasso
Sammyjo20 opened this issue · comments
Right, we need to get some tests in here!
I was wondering how specifically is the best way to test Lasso. Would the best way to test each individual component, e.g the backing up process?
Tests to write:
- Zip helper can zip files and folders up
- Zip helper can unzip files and checksum is correct
- Backup service can create a backup successfully
- Backup service can restore files and checksum matches
- Backup service can bring back sym-linked directories
- Versioning service can successfully append a new version
- Versioning service can successfully remove a version
- Archive service can successfully create
- Archive service can successfully extract
- File lister lists the correct files
- File lister excludes specified files
- File lister excludes specified directories
- Config validator throws exceptions at certain configurations
- Bundle integrity helpers creates and validates checksums correctly
- Lasso-bundle.json file is generated successfully
- Lasso-bundle.json can be read successfully
- Webhooks can send successfully
- Compiled assets can be uploaded to filesystem correctly
Hi @Sammyjo20
I've attempted to address the todo Zip helper can zip files and folders up
in #48
I can address the Zip helper can unzip files and checksum is correct
todo for the Unzipper
helper class next if you'd like, but I'd like to await your feedback on this PR first.