@currents/playwright

中文文档
2.7.0发布于 2026/11/03MITTypeScriptESM + CJS近 30 天下载 169.1万

Currents is the most popular and advanced cloud-based platform for Playwright - debugging, error analysis, real-time analytics, orchestration, and more

原始使用文档
文档目录8 节
  1. Key Features
  2. Requirements
  3. Install
  4. Enable traces, screenshots and videos
  5. Getting Started
  6. Orchestration - Speed Up Your Tests
  7. CI Integrations
  8. Documentation

@currents/playwright

Currents is the most popular and advanced cloud-based platform for Playwright - debugging, error analysis, real-time analytics, orchestration, and more

npm version npm dm npm dt

Documentation | Currents

Key Features

Real-time Test Analytics & Debugging

  • Real-time streaming of test results for reliable, high-performance reporting
  • Trace files, videos, screenshots, and console output saved to cloud
  • Comprehensive test history, trends analysis, and flakiness tracking
  • Error insights and common failure pattern detection

Integration & Automation

  • GitHub integration with inline PR comments and detailed error reports
  • Slack notifications and alert for build status and failure alerts
  • Issue tracker integrations to collaborate and extend your workflows
  • REST API and HTTP Webhooks for custom integrations
  • IDE Extension to troubleshoot failures with AI-powered insights without leaving your code

Performance & Scale

  • Up to 40% faster CI Playwright tests with Orchestration - superior to native Playwright sharding
  • Git information collection and association with CI builds
  • History and trends browser on test and spec levels
  • Selective test execution using powerful Actions engine that skips and quarantines tests on the fly

Built for AI & Modern Development

  • IDE extension for instant feedback
  • Fix With AI for automated error troubleshooting
  • MCP (Model Context Protocol) for effective automation
  • Start debugging immediately - the results are available in real time

Enterprise Ready

  • SOC2 compliant and trusted by leading companies
  • Monitoring test suite performance with automated reporting
  • Flexible, usage-based plans for every type of organization

Requirements

  • NodeJS 20+
  • Playwright 1.40.1+

Install

npm install @currents/playwright

Enable traces, screenshots and videos

use: {
  // ...
  trace: "retain-on-failure-and-retries",
  video: "retain-on-failure",
  screenshot: "on",
}

Getting Started

🤖 Want to hand this off to AI? Copy the prompt below into Cursor, Claude, ChatGPT, or your editor assistant and let it wire up the basics for you.
Your task is to update Playwright setup to report test results to Currents.dev

1. Install "@currents/playwright" package:

- as a development dependency
- using the project's package manager (npm, pnpm, yarn, etc...)

2. Update the Playwright configuration file (playwright.config.ts|js|mjs):

  - enable traces, videos and screenshots by updating the "use" property, e.g.:

  use: {
    trace: "retain-on-failure-and-retries",
    video: "retain-on-failure",
    screenshot: "on",
  }

  - add Currents test reporter, keep any existing reporters. Example:

  // playwright.config.ts
  import { defineConfig, devices, PlaywrightTestConfig } from "@playwright/test";
  import { currentsReporter } from "@currents/playwright";

  export default defineConfig({
    // ...
    reporter: [currentsReporter()], // add Currents reporter
  });

3. Create a new "currents.config.ts" file next to the existing playwright.config.ts|js|mjs file.

- use the same extension
- add the content below

import { CurrentsConfig } from "@currents/playwright";

const config: CurrentsConfig = {
  recordKey: process.env.CURRENTS_RECORD_KEY!,
  projectId: process.env.CURRENTS_PROJECT_ID!
};

export default config;

Start reporting test results to Currents in just minutes. Head to the Getting Started Guide for step-by-step setup instructions.

The guide covers:

  • Installing @currents/playwright
  • Adding the Currents reporter to your Playwright config
  • Running your first test

Orchestration - Speed Up Your Tests

Orchestration helps distribute tests across CI machines for parallel execution, achieving up to 40% faster test completion compared to native Playwright sharding.

Instead of fixed sharding, Currents uses historical timing data to intelligently distribute tests, reducing CI time and costs.

Learn more in the Orchestration Setup Guide.

CI Integrations

Check out example repositories and guides for running Playwright tests on popular CI providers and recording results to Currents:

For all CI/CD examples, see currents-examples repository.

Documentation

Explore comprehensive guides to get started and master Currents:

Visit docs.currents.dev for the complete documentation.

版本与发布记录

@currents/playwright 共发布 224 个版本,首次发布于 2022/11/19;过去 12 个月发布了 42 个版本。

版本发布日期距今
2.7.0latest2026/11/038 天前
2.6.02026/10/2715 天前
2.5.22026/10/061 个月前
2.5.2-beta.0beta2026/10/061 个月前
2.5.12026/09/251 个月前
2.5.1-beta.02026/09/251 个月前

其他发布通道:alpha → 2.0.0-alpha.1,oldversion → 1.24.0,beta → 2.5.2-beta.0。

关于 @currents/playwright 的常见问题

@currents/playwright 是什么?

Currents is the most popular and advanced cloud-based platform for Playwright - debugging, error analysis, real-time analytics, orchestration, and more

如何安装 @currents/playwright?

在项目目录运行 npm install @currents/playwright,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 pwc、pwc-p,可以用 npx pwc 直接运行。

@currents/playwright 支持 TypeScript 吗?

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

@currents/playwright 支持 ESM 还是 CommonJS?

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

@currents/playwright 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20.18.1。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@currents/playwright 可以商用吗?

@currents/playwright 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

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

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

@currents/playwright 还在维护吗?

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