merge branches and document
Some checks are pending
Rhai Tests / Run Rhai Tests (push) Waiting to run
Some checks are pending
Rhai Tests / Run Rhai Tests (push) Waiting to run
This commit is contained in:
@@ -4,7 +4,10 @@
|
||||
# This script runs all the Rhai tests in the rhai_tests directory
|
||||
|
||||
# Set the base directory
|
||||
BASE_DIR="src/rhai_tests"
|
||||
BASE_DIR="."
|
||||
|
||||
# Path to herodo executable (assuming debug build)
|
||||
HERODO_CMD="../target/debug/herodo"
|
||||
|
||||
# Define colors for output
|
||||
GREEN='\033[0;32m'
|
||||
@@ -27,7 +30,7 @@ run_tests_in_dir() {
|
||||
# Check if the directory has a run_all_tests.rhai script
|
||||
if [ -f "${dir}/run_all_tests.rhai" ]; then
|
||||
echo "Using module's run_all_tests.rhai script"
|
||||
herodo --path "${dir}/run_all_tests.rhai"
|
||||
${HERODO_CMD} --path "${dir}/run_all_tests.rhai"
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo -e "${GREEN}✓ All tests passed for module: ${module_name}${NC}"
|
||||
@@ -43,7 +46,7 @@ run_tests_in_dir() {
|
||||
|
||||
for test_file in $test_files; do
|
||||
echo "Running test: $(basename $test_file)"
|
||||
herodo --path "$test_file"
|
||||
${HERODO_CMD} --path "$test_file"
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
all_passed=false
|
||||
|
Reference in New Issue
Block a user