Initial commit: add .gitignore and README
This commit is contained in:
60
tests/run-all-tests.sh
Executable file
60
tests/run-all-tests.sh
Executable file
@@ -0,0 +1,60 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Comprehensive Test Runner for DBIS Core Lite
|
||||
# Runs all test suites with reporting
|
||||
|
||||
set -e
|
||||
|
||||
echo "🧪 DBIS Core Lite - Comprehensive Test Suite"
|
||||
echo "=============================================="
|
||||
echo ""
|
||||
|
||||
# Colors for output
|
||||
GREEN='\033[0;32m'
|
||||
RED='\033[0;31m'
|
||||
YELLOW='\033[1;33m'
|
||||
NC='\033[0m' # No Color
|
||||
|
||||
# Check if test database exists
|
||||
if [ -z "$TEST_DATABASE_URL" ]; then
|
||||
export TEST_DATABASE_URL="postgresql://postgres:postgres@localhost:5432/dbis_core_test"
|
||||
echo -e "${YELLOW}⚠️ TEST_DATABASE_URL not set, using default: $TEST_DATABASE_URL${NC}"
|
||||
fi
|
||||
|
||||
echo "📋 Test Configuration:"
|
||||
echo " NODE_ENV: ${NODE_ENV:-test}"
|
||||
echo " TEST_DATABASE_URL: $TEST_DATABASE_URL"
|
||||
echo ""
|
||||
|
||||
# Run test suites
|
||||
echo "🔍 Running Unit Tests..."
|
||||
npm test -- tests/unit --passWithNoTests
|
||||
|
||||
echo ""
|
||||
echo "🔒 Running Security Tests..."
|
||||
npm test -- tests/security --passWithNoTests
|
||||
|
||||
echo ""
|
||||
echo "✅ Running Compliance Tests..."
|
||||
npm test -- tests/compliance --passWithNoTests
|
||||
|
||||
echo ""
|
||||
echo "✔️ Running Validation Tests..."
|
||||
npm test -- tests/validation --passWithNoTests
|
||||
|
||||
echo ""
|
||||
echo "🔗 Running Integration Tests..."
|
||||
npm test -- tests/integration --passWithNoTests
|
||||
|
||||
echo ""
|
||||
echo "🔄 Running E2E Tests..."
|
||||
npm test -- tests/e2e --passWithNoTests
|
||||
|
||||
echo ""
|
||||
echo "📊 Generating Coverage Report..."
|
||||
npm run test:coverage
|
||||
|
||||
echo ""
|
||||
echo -e "${GREEN}✅ All test suites completed!${NC}"
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user