pw2art is a Babel plugin that transpiles standard Playwright test syntax into syntax compatible with the Artillery Playwright engine. Version 1.0.0 is the initial stable release. It automates the conversion of Playwright tests for use with Artillery's load testing engine, reducing manual rewriting. Key differentiator: eliminates the tedious process of adapting Playwright scripts for Artillery, enabling reuse of existing test suites for performance testing. Release cadence is not yet established.
npm install pw2artNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import pw2art, define source Playwright test, transpile to Artillery syntax, and log result.
Ensure your Playwright test uses only supported methods (page.goto, page.click, etc.). Check documentation for full list.
Pin to specific version if using programmatic API.
Review output and modify Artillery YAML configuration as needed.
Use import syntax or change to ES module.
Use import { transform } from 'pw2art'.Use babelPluginPw2art export or configure via .babelrc with require('pw2art').babelPluginPw2art.