Skip to content

feat: add test coverage#7

Merged
gigatim merged 5 commits intomainfrom
feat-add-test-coverage
Mar 12, 2026
Merged

feat: add test coverage#7
gigatim merged 5 commits intomainfrom
feat-add-test-coverage

Conversation

@gigatim
Copy link
Contributor

@gigatim gigatim commented Mar 12, 2026

add additional test coverage

gigatim added 5 commits March 12, 2026 14:11
Tests mix.exs detection: exit 0 when present, exit 1
when absent, and correct output string.
Tests variable export from env dir, whitelist and
blacklist regex filtering, empty dir, and missing
dir edge cases.
Tests reading MIX_ENV from env file, defaulting to
prod, preserving existing MIX_ENV, and accepting a
custom default parameter.
Add bash test framework with .test_support.sh and
comprehensive tests for all three buildpack scripts:

- detect_test.sh: mix.exs detection (4 tests)
- compile_test.sh: env vars, MIX_ENV, write_export,
  output helpers (17 tests)
- release_test.sh: YAML output format and content
  (10 tests)
Tests YAML output structure, app name interpolation,
and empty addons array.
@gigatim gigatim merged commit 77715a8 into main Mar 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant