Covering the archiving and compression code in the step with tests. Unit tests would only test how we call external tools, while E2E testing this logic would be cumbersome.
Changes
Add integration folder with integration tests tagged as integration. These tests don't run with the simple go test command, only when the tag is specified.
Extract compression logic into separate package so that it's testable independently of the rest of the step.
Checklist
step.yml
andREADME.md
is updated with the changes (if needed)Version
Requires a no version update
Context
Covering the archiving and compression code in the step with tests. Unit tests would only test how we call external tools, while E2E testing this logic would be cumbersome.
Changes
Add
integration
folder with integration tests tagged asintegration
. These tests don't run with the simplego test
command, only when the tag is specified.Extract compression logic into separate package so that it's testable independently of the rest of the step.
Investigation details
Decisions