@deploysentinel/playwright

中文文档
0.3.4发布于 2023/04/19UNLICENSEDTypeScriptESM + CJS近 30 天下载 1963

Enables viewing/debugging Playwright runs from remote environments (ex. CI) with debug information you're used to having locally.

原始使用文档
文档目录6 节
  1. Installation
  2. Usage
  3. Add Reporter
  4. Add API Key
  5. Debugging
  6. Run Playwright with an API Key

DeploySentinel Playwright Reporter

Enables viewing/debugging Playwright runs from remote environments (ex. CI) with debug information you're used to having locally.

Installation

Install the Playwright reporter into your Playwright project.

npm install -D @deploysentinel/playwright

Usage

Add Reporter

In your playwright config file (ex. playwright.config.ts) add:

import type { PlaywrightTestConfig } from '@playwright/test';

const config: PlaywrightTestConfig = {
  reporter: '@deploysentinel/playwright',
  use: {
    /* Make sure this is not 'off' so debugger can upload trace info */
    trace: 'on',
  },
};
export default config;

Add API Key

Lastly, export your API key to the OS environment variable DEPLOYSENTINEL_API_KEY. You can grab your API key by logging into/signing up for DeploySentinel and visiting your team page: https://deploysentinel.com/team.

DEPLOYSENTINEL_API_KEY=YOUR_API_KEY

Debugging

To display internal debug logs, set the environment variable DEPLOYSENTINEL_LOG_VERBOSE to 1, yes, or true.

DEPLOYSENTINEL_LOG_VERBOSE=1 ('1', 'yes' or 'true')

Run Playwright with an API Key

DEPLOYSENTINEL_API_KEY=xxx npx playwright test

版本与发布记录

@deploysentinel/playwright 共发布 11 个版本,首次发布于 2023/01/11;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.3.4latest2023/04/193 年前
0.3.32023/02/183 年前
0.3.22023/02/143 年前
0.3.12023/02/143 年前
0.3.02023/02/083 年前
0.2.52023/01/313 年前

关于 @deploysentinel/playwright 的常见问题

@deploysentinel/playwright 是什么?

Enables viewing/debugging Playwright runs from remote environments (ex. CI) with debug information you're used to having locally.

如何安装 @deploysentinel/playwright?

在项目目录运行 npm install @deploysentinel/playwright,或使用 pnpm add / yarn add / bun add。

@deploysentinel/playwright 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@deploysentinel/playwright 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@deploysentinel/playwright 可以商用吗?

@deploysentinel/playwright 使用 UNLICENSED 许可。作者声明为 UNLICENSED,即不授予公开使用许可(与公共领域的 Unlicense 不同)。使用前需获得作者授权。以上为概括,不构成法律意见,请以许可原文为准。

@deploysentinel/playwright 的下载量有多少?

根据 npm 官方下载统计,@deploysentinel/playwright 在 2026/10/12 – 2026/11/10 这 30 天内被下载 1,963 次,日均约 65 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@deploysentinel/playwright 还在维护吗?

最新版本 0.3.4 发布于 2023/04/19(3 年前);至今共发布 11 个版本,其中过去 12 个月发布了 0 个;首次发布于 2023/01/11。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。