diff --git a/test/athena.bats b/test/athena.bats new file mode 100644 index 0000000..998f03f --- /dev/null +++ b/test/athena.bats @@ -0,0 +1,57 @@ +#!/usr/bin/env bats + +function setup_file() { + load helper/common.bash + + git_checkout https://github.com/athena-framework/athena + + SHARDS_OVERRIDE=shard.dev.yml $SHARDS install +} + +function setup() { + load helper/common.bash +} + +function test_component() { + ./scripts/test.sh "$1" +} + +@test "clock" { + test_component "clock" +} +@test "console" { + test_component "console" +} +@test "dependency_injection" { + test_component "dependency_injection" +} +@test "dotenv" { + test_component "dotenv" +} +@test "event_dispatcher" { + test_component "event_dispatcher" +} +@test "framework" { + test_component "framework" +} +@test "image_size" { + test_component "image_size" +} +@test "mercure" { + test_component "mercure" +} +@test "negotiation" { + test_component "negotiation" +} +@test "routing" { + test_component "routing" +} +@test "serializer" { + test_component "serializer" +} +@test "spec" { + test_component "spec" +} +@test "validator" { + test_component "validator" +} diff --git a/test/helper/common.bash b/test/helper/common.bash index 26179bf..1db9792 100644 --- a/test/helper/common.bash +++ b/test/helper/common.bash @@ -13,7 +13,7 @@ MAKE="${MAKE:-make${EXE}}" function git_checkout() { local URL="$1" - local TARGET="$BATS_TMPDIR/${1##*/}" + local TARGET="$BATS_TMPDIR/workdir/${1##*/}" if [ -d "$TARGET" ]; then cd "$TARGET" || exit 1