- 16 个业务模块,856 个测试用例,40 个 E2E 测试 - 单一 React 19 前端 + PlatformSwitcher 二合一切换 - Flask 后端支持 scenario/dcloud_module/dcloud_e2e/dcloud_all 四种任务类型 - E2E 测试面板:API 全链路(8条) + UI 点击(3条) + 分步测试(3个) - SSE 实时日志流 + 飞书告警 + 定时调度 - 完整还原原 ToB 平台 TestPanel E2E 模块
31 lines
812 B
Docker
31 lines
812 B
Docker
# syntax=docker/dockerfile:1
|
|
FROM python:3.12-slim-bookworm
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
libglib2.0-0 libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 \
|
|
libcups2 libdrm2 libdbus-1-3 libxkbcommon0 libxcomposite1 \
|
|
libxdamage1 libxfixes3 libxrandr2 libgbm1 libpango-1.0-0 \
|
|
libcairo2 libasound2 libatspi2.0-0 \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
RUN playwright install chromium && \
|
|
playwright install-deps chromium
|
|
|
|
COPY . .
|
|
|
|
RUN mkdir -p reports screenshots logs .auth
|
|
|
|
ENV HEADLESS=true
|
|
ENV DEFAULT_TIMEOUT=15000
|
|
ENV PYTEST_RUNNING=true
|
|
|
|
# Default: run all tests
|
|
CMD ["pytest", "-v"]
|
|
|
|
# To start the platform server instead:
|
|
# CMD ["python", "-m", "backend.app"] |