Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for athena-framework #56

Merged
merged 6 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions test/athena.bats
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#!/usr/bin/env bats

function setup_file() {
load helper/common.bash

git_checkout https://github.com/athena-framework/athena

$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"
}
straight-shoota marked this conversation as resolved.
Show resolved Hide resolved
@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
Loading