bitrise-steplib / bitrise-step-save-cache

1 stars 4 forks source link

Add integration tests for compression #6

Closed ofalvai closed 1 year ago

ofalvai commented 1 year ago

Checklist

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 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.

Investigation details

Decisions