Skip to content

Conversation

@UncleGrumpy
Copy link
Collaborator

@UncleGrumpy UncleGrumpy commented Dec 8, 2025

Renames test/test_packbeam.erl -> test/packbeam_api_tests.erl to conform to standard eunit naming conventions, with the test module having the same name as the module with _tests appended to the name. This allows testing individual modules with rebar3 eunit -m MODULE.

Add packbeam_tests.erl to test the main packbeam cli escript. The escript should be assembled in the test profile, as is done in the Makefile etest target, before eunit tests are run.

Closes #51

@UncleGrumpy UncleGrumpy requested a review from pguyot December 8, 2025 07:13
@UncleGrumpy UncleGrumpy force-pushed the improve_test_coverage branch from 9ff4d39 to e56c2b3 Compare December 8, 2025 08:37
Renames test/test_packbeam.erl -> test/packbeam_api_tests.erl to conform to standard eunit naming
conventions, with the test module having the same name as the module is test with `_tests` appended
to the name. This allows testing individual modules with `rebar3 eunit -m MODULE`.

Add packbeam_tests.erl to test the main `packbeam` cli escript. The escript should be assembled in
the `test` profile, as is done in the Makefile `etest` target, before eunit tests are run.

Signed-off-by: Winford <[email protected]>
@UncleGrumpy UncleGrumpy force-pushed the improve_test_coverage branch from e56c2b3 to c467515 Compare December 8, 2025 08:40
@UncleGrumpy UncleGrumpy merged commit a2f9479 into atomvm:master Dec 8, 2025
6 checks 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.

Missing tests for CLI interface

2 participants