# MCP Server Tests
This directory contains comprehensive tests for the Midnight Control Plane (MCP) server, organized into three main categories.
## π Test Documentation
- **[Unit Tests](unit/README.md)** - Comprehensive unit tests with 100% coverage across all metrics
- **[Integration Tests](integration/README.md)** - HTTP-based integration tests for Docker deployments
- **[E2E Tests](e2e/README.md)** - End-to-end tests with ElizaOS integration and MCP protocol validation
## π Quick Start
### Run Specific Test Types
```bash
# Unit tests only
yarn test:unit
# Integration tests only
yarn test:integration
# E2E tests only
yarn test:e2e
```
## ποΈ Test Structure
```
test/
βββ README.md # This file - Main test documentation
βββ unit/ # Unit tests (100% coverage)
β βββ README.md # Detailed unit test documentation
βββ integration/ # Integration tests
β βββ README.md # HTTP-based integration testing
βββ e2e/ # End-to-end tests
βββ README.md # E2E testing with AI agents
```
## π§ Prerequisites
- Node.js and Yarn installed
- For integration tests: Docker server running
- For E2E tests: Eliza AI agents accessible
## π Test Statistics
- **Unit Tests:** 429 tests across 18 test suites
- **Integration Tests:** 8 main test scenarios
- **E2E Tests:** Comprehensive AI agent integration testing
For detailed information about each test type, configuration, and troubleshooting, please refer to the specific README files in each subdirectory.