feat(tests): add integration tests for publish functionality and enhance error handling
This commit is contained in:
parent
d266dd4eb0
commit
d0a0adf620
1 changed files with 956 additions and 27 deletions
24
integrationtests/run_tests.sh
Executable file
24
integrationtests/run_tests.sh
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Integration Test Runner for MCP Registry
|
||||
# This script runs the integration tests for the publish functionality
|
||||
|
||||
echo "Running MCP Registry Integration Tests..."
|
||||
echo "========================================"
|
||||
|
||||
# Change to the project directory (parent of integrationtests)
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
# Run integration tests with verbose output
|
||||
echo "Running publish integration tests..."
|
||||
go test -v ./integrationtests/...
|
||||
|
||||
# Check exit code
|
||||
if [ $? -eq 0 ]; then
|
||||
echo ""
|
||||
echo "✅ All integration tests passed!"
|
||||
else
|
||||
echo ""
|
||||
echo "❌ Some integration tests failed!"
|
||||
exit 1
|
||||
fi
|
||||
Loading…
Reference in a new issue