Files
claude-code-glm-suite/docker/test-env/docker-compose.yml
uroma 8014ad0bcc Fix Docker tests to achieve 100% on 2/3 installation methods
Major fixes:
- Fixed Claude Code verification (was checking 'claude-code', now checks 'claude')
- Fixed volume mount paths (use absolute path /tmp/claude-repo for runtime)
- Fixed agents copy path (removed incorrect /agents/ subdirectory)
- Fixed critical agent paths (studio-coach in bonus/, not project-management)
- Added expect package for interactive installer automation
- Fixed test count aggregation to read from individual result files

Test Results (after fixes):
 Manual Installation: 27/27 passing (100%)
 Master Prompt Installation: 15/15 passing (100%)
⚠️  Interactive Installer: 7/13 passing (54% - expect automation issue)

Note: Interactive installer works fine for manual testing, just difficult
to automate with expect scripts due to prompt matching complexity.
2026-01-16 10:54:31 +00:00

73 lines
1.9 KiB
YAML

version: '3.8'
services:
# Test Option 2: Interactive Installer
test-interactive:
build:
context: .
dockerfile: Dockerfile
container_name: claude-interactive-test
volumes:
- /tmp/claude-repo:/home/testuser/claude-code-glm-suite
environment:
- TEST_MODE=interactive
- ANTHROPIC_AUTH_TOKEN=${ANTHROPIC_AUTH_TOKEN:-test-token}
command: /home/testuser/test-suite/test-interactive-install.sh
networks:
- test-network
# Test Option 1: Master Prompt
test-master-prompt:
build:
context: .
dockerfile: Dockerfile
container_name: claude-master-prompt-test
volumes:
- /tmp/claude-repo:/home/testuser/claude-code-glm-suite
environment:
- TEST_MODE=master-prompt
- ANTHROPIC_AUTH_TOKEN=${ANTHROPIC_AUTH_TOKEN:-test-token}
command: /home/testuser/test-suite/test-master-prompt-install.sh
networks:
- test-network
# Test Option 3: Manual Installation
test-manual:
build:
context: .
dockerfile: Dockerfile
container_name: claude-manual-test
volumes:
- /tmp/claude-repo:/home/testuser/claude-code-glm-suite
environment:
- TEST_MODE=manual
- ANTHROPIC_AUTH_TOKEN=${ANTHROPIC_AUTH_TOKEN:-test-token}
command: /home/testuser/test-suite/test-manual-install.sh
networks:
- test-network
# Verification container (runs after all tests)
verify-all:
build:
context: .
dockerfile: Dockerfile
container_name: claude-verify-all
volumes:
- /tmp/claude-repo:/home/testuser/claude-code-glm-suite
environment:
- TEST_MODE=verify
command: /home/testuser/test-suite/verify-all-installations.sh
networks:
- test-network
depends_on:
- test-interactive
- test-master-prompt
- test-manual
networks:
test-network:
driver: bridge
volumes:
test-results: