Files
chart/run_common_tests.sh

16 lines
394 B
Bash
Executable File

#!/bin/bash
# https://github.com/quintush/helm-unittest
# -- You need to install this helm plugin
# helm plugin install https://github.com/quintush/helm-unittest
curr_dir=${pwd}
common_test_path="library/common-test"
echo "Building common..."
helm dependency build "$common_test_path"
echo "Running tests..."
cd "$common_test_path"
helm unittest --helm3 -f "tests/*/*.yaml" .
cd "$curr_dir"