Skip to main content
Glama
run_tests.sh•1.06 kB
#!/bin/bash # Run tests for the Databricks MCP server # Default values TEST_PATH="${1:-tests/}" COVERAGE=false VERBOSE=false # Parse arguments while [[ $# -gt 0 ]]; do case $1 in --coverage|-c) COVERAGE=true shift ;; --verbose|-v) VERBOSE=true shift ;; *) TEST_PATH="$1" shift ;; esac done # Check if the virtual environment exists if [ ! -d ".venv" ]; then echo "Virtual environment not found. Please create it first:" echo "uv venv" exit 1 fi # Activate virtual environment echo "šŸ”§ Activating virtual environment..." source .venv/bin/activate # Base command cmd="pytest" # Add verbose flag if specified if [ "$VERBOSE" = true ]; then cmd="$cmd -v" fi # Add coverage if specified if [ "$COVERAGE" = true ]; then cmd="$cmd --cov=src --cov-report=term-missing" fi # Add test path cmd="$cmd $TEST_PATH" echo "Running: $cmd" $cmd # Print summary echo "" echo "Test run completed at $(date)"

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/robkisk/databricks-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server