Skip to content

Commit

Permalink
Add tests for athena-framework (#56)
Browse files Browse the repository at this point in the history
Co-authored-by: George Dietrich <[email protected]>
  • Loading branch information
straight-shoota and Blacksmoke16 authored Oct 11, 2024
1 parent 9509994 commit 07a1295
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 1 deletion.
57 changes: 57 additions & 0 deletions test/athena.bats
Original file line number Diff line number Diff line change
@@ -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"
}
2 changes: 1 addition & 1 deletion test/helper/common.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 07a1295

Please sign in to comment.