mitao-su/dsh-playwright-cli2

dsh-playwright-cli

DeepSeek Harness host plugin that wraps the Playwright CLI: install browsers, run tests, and open the HTML report from the agent loop.

AI 분석

核心用途是让智能体能够直接执行自动化测试并输出 HTML 报告。适合需要进行端到端测试、前端自动化校验的开发与测试人员。

패키지
dsh-playwright-cli
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 8. 13.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:mitao-su/dsh-playwright-cli

使用示例

Agent 侧一次典型会话:

  1. playwright_version(workdir 默认会话工作区)→ 确认 CLI 就绪;
  2. playwright_testfiles: ["tests/login.spec.ts"]reporter: "html")→ 跑测试,得到 reportDir
  3. playwright_show_report → 拿到 url,用户直接在浏览器打开报告。

配置(profile cordis.patch.ymlid: playwright-cli 整段覆盖):

- insert:
    - id: playwright-cli
      name: dsh-playwright-cli
      config:
        timeoutMs: 600000          # 每次 CLI 调用的默认超时
        reportDir: playwright-report
        reportRoute: /playwright-report
        autoInstallPackage: true   # CLI 缺失时自动 npm install -D @playwright/test