run make before running integration tests #770

Open
opened 2026-02-13 16:49:21 +00:00 by iexos · 2 comments
Member

right now the bats integration test suite will use whatever abra binary was last compiled. its tedious to remember between testing/fixing. Any use case which should make it optional?

right now the bats integration test suite will use whatever `abra` binary was last compiled. its tedious to remember between testing/fixing. Any use case which should make it optional?
iexos added the
test
label 2026-02-13 16:49:21 +00:00
Owner

@iexos

The CI suite does build the binary beforehand:

echo "========================================================================"
echo "BUILDING ABRA"
echo "========================================================================"
export PATH="/usr/lib/go-1.21/bin:$PATH"
make build
echo "========================================================================"

I'm not sure how you're running the integration suite? If you mean that bats should itself compile the binary, then you could probably add that to the central helpers file somewhere around here:

_ensure_swarm

@iexos The CI suite does build the binary beforehand: https://git.coopcloud.tech/toolshed/abra/src/commit/2c5a273fa77fac01eeebdc48b197a8c52ea235d3/scripts/tests/run-ci-int#L50-L55 I'm not sure how you're running the integration suite? If you mean that `bats` should itself compile the binary, then you could probably add that to the central helpers file somewhere around here: https://git.coopcloud.tech/toolshed/abra/src/commit/2c5a273fa77fac01eeebdc48b197a8c52ea235d3/tests/integration/helpers/common.bash#L21-L22
Author
Member

Ah, I am running it like bats tests/integration/recipe_release.bats, so I don't need to run the full suite when working on a specific task. This is also what the docs tell me when running locally: https://docs.coopcloud.tech/abra/hack/#run-tests_1

Ah, I am running it like `bats tests/integration/recipe_release.bats`, so I don't need to run the full suite when working on a specific task. This is also what the docs tell me when running locally: https://docs.coopcloud.tech/abra/hack/#run-tests_1
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: toolshed/abra#770
No description provided.