Skip to content

Install

Chaos Maker has one shared core package and one adapter package per test framework. Install core plus the adapter used by your test suite.

Terminal window
# Playwright
npm install @chaos-maker/core @chaos-maker/playwright
# Cypress
npm install @chaos-maker/core @chaos-maker/cypress
# WebdriverIO
npm install @chaos-maker/core @chaos-maker/webdriverio
# Puppeteer
npm install @chaos-maker/core @chaos-maker/puppeteer
FrameworkPackageInjection timing
Playwright@chaos-maker/playwrightBefore page.goto()
Cypress@chaos-maker/cypressBefore cy.visit()
WebdriverIO@chaos-maker/webdriverioAfter browser.url()
Puppeteer@chaos-maker/puppeteerBefore page.goto() for network and WebSocket chaos

Build the package that owns your tests, then run one smoke test with a fixed seed and a getChaosLog() assertion. If a failure occurs, copy the seed into the test to replay the same probability decisions.