Skip to content

Commit

Permalink
Enable tests for helm-locker
Browse files Browse the repository at this point in the history
  • Loading branch information
mallardduck committed Oct 11, 2024
1 parent bbfa2bd commit f238f2c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ set -e

cd $(dirname $0)/..

declare -r target_test_tags=(
#["helm-project-operator"]="helm_locker",
["helm-locker"]="helm_locker",
["prometheus-federator"]="prometheus_federator"
echo "Starating tests"

declare -rA target_test_tags=(
#[helm-project-operator]="helm_project_operator",
["helm-locker"]="helm_locker",
["prometheus-federator"]="prometheus_federator"
)
TARGET_TEST_TAG=${target_test_tags[$BUILD_TARGET]}
TARGET_TEST_TAG="${target_test_tags["$BUILD_TARGET"]}"

echo "Running tests for ${TARGET_TEST_TAG}"
go test -cover -tags="test,${TARGET_TEST_TAG}" ./...

0 comments on commit f238f2c

Please sign in to comment.