.env.test.example•2.31 kB
# Attio MCP Server - Integration Test Configuration
# Copy this file to .env.test and fill in your workspace-specific IDs
# All IDs can be found in your Attio workspace URL or via API
# ===== REQUIRED: Core Test Data =====
# These are required for basic integration tests to run
# A test company that can be modified/deleted during tests
TEST_COMPANY_ID=rec_your_test_company_id_here
# A test person that can be modified/deleted during tests
TEST_PERSON_ID=rec_your_test_person_id_here
# A list for testing add/remove operations
TEST_LIST_ID=list_your_test_list_id_here
# ===== OPTIONAL: Extended Test Data =====
# These enable additional test coverage
# An empty list for testing edge cases
TEST_EMPTY_LIST_ID=
# A deal/opportunity for deal-related tests
TEST_DEAL_ID=
# A task for task operation tests
TEST_TASK_ID=
# A note for note operation tests
TEST_NOTE_ID=
# ===== TEST DATA VALUES =====
# Values used when creating test records (customize as needed)
TEST_COMPANY_NAME="Test Company Inc"
TEST_PERSON_EMAIL="test@example.com"
TEST_PERSON_FIRST_NAME="Test"
TEST_PERSON_LAST_NAME="User"
TEST_DOMAIN="testcompany.com"
# ===== WORKSPACE CONFIGURATION =====
# Optional: Workspace-specific settings for accurate testing
# Currency code used in your workspace (e.g., USD, EUR, GBP)
TEST_CURRENCY="USD"
# Custom field slugs (if your workspace has custom fields)
# Format: TEST_CUSTOM_FIELD_<OBJECT>_<FIELD>=slug_name
# Example: TEST_CUSTOM_FIELD_COMPANY_INDUSTRY=industry
TEST_CUSTOM_FIELD_COMPANY_INDUSTRY=
TEST_CUSTOM_FIELD_PERSON_DEPARTMENT=
# ===== TEST BEHAVIOR =====
# Control how tests behave
# Whether to skip tests that require specific IDs not provided above
SKIP_INCOMPLETE_TESTS=true
# Whether to clean up test data after runs (recommended: true)
CLEANUP_TEST_DATA=true
# Test data prefix for easy identification
TEST_DATA_PREFIX="E2E_TEST_"
# ===== INSTRUCTIONS =====
# 1. Copy this file: cp .env.test.example .env.test
# 2. Fill in the IDs from your Attio workspace
# 3. To find IDs:
# - Open a record in Attio
# - Look at the URL: https://app.attio.com/workspaces/.../objects/.../records/rec_abc123
# - The ID is the part starting with rec_, list_, etc.
# 4. Run setup script to create test data: npm run setup:test-data
# 5. Run integration tests: npm test:integration