@replayio/cypress
Plugin to record your Cypress tests with Replay
Last updated 2 years ago by ryanjduffy .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @replayio/cypress 
SYNC missed versions from official npm registry.

@replayio/cypress

Plugin to record your Cypress tests with Replay

Check out the "Recording Automated Tests Guide" to get started.

Use with action-cypress to automatically upload replays of failed tests.

Installation

npm i @replayio/cypress

Configuration

The Replay adapter for cypress requires two updates: one to your cypress.config.js and one to your support file in cypress/e2e/support.js.

// cypress.config.js
import { defineConfig } from "cypress";
import cypressReplay from "@replayio/cypress";

module.exports = defineConfig({
  e2e: {
    setupNodeEvents(on, config) {
      // Adds replay-firefox (macOS, linux) and replay-chromium (linux)
      // browsers and hooks into Cypress lifecycle methods to capture test
      // metadata and results
      cypressReplay(on, config);
      return config;
    },
  },
});
// cypress/e2e/support.js

import "@replayio/cypress/support";

Runtime Configuration

  • Use the --browser flag to select a Replay Browser to record
  • If using the Firefox version of Replay, you must set the RECORD_ALL_CONTENT environment variable to enable recording.
  • To enable capturing metadata for the tests, you must set RECORD_REPLAY_METADATA_FILE to an accessible file path.
  • To hide the Cypress sidebar and only show your application, set CYPRESS_NO_COMMAND_LOG.
RECORD_ALL_CONTENT=1 \
RECORD_REPLAY_METADATA_FILE=$(mktemp) \
npx cypress run --browser replay-chromium

Parallel runs on CI

If you have a large test suite, you might choose to split your test suite up and run them in parallel across multiple machines but still treat them as a single suite. By default, @replayio/cypress will generate a UUID for the suite and store it in the recording metadata under test.run.id but in this case each machine will have its own id.

In order to link these independently ran tests together, you can generate your own UUID and set it in the RECORD_REPLAY_TEST_RUN_ID environment variable and it will be used instead of generating a value.

Current Tags

  • 1.0.4-alpha.0                                ...           alpha (3 years ago)
  • 0.4.8-alpha.0                                ...           canary (3 years ago)
  • 0.0.0-experimental-75bef0c7                                ...           experimental (3 years ago)
  • 1.7.20                                ...           latest (2 years ago)

146 Versions

  • 1.7.20                                ...           2 years ago
  • 1.7.19                                ...           2 years ago
  • 1.7.18                                ...           2 years ago
  • 1.7.17                                ...           2 years ago
  • 1.7.16                                ...           2 years ago
  • 1.7.15                                ...           2 years ago
  • 1.7.14                                ...           2 years ago
  • 1.7.13                                ...           2 years ago
  • 1.7.12                                ...           2 years ago
  • 1.7.11                                ...           2 years ago
  • 1.7.10                                ...           2 years ago
  • 1.7.9                                ...           2 years ago
  • 1.7.8                                ...           2 years ago
  • 1.7.7                                ...           2 years ago
  • 1.7.6                                ...           2 years ago
  • 1.7.5                                ...           2 years ago
  • 1.7.4                                ...           2 years ago
  • 1.7.3                                ...           2 years ago
  • 1.7.2                                ...           2 years ago
  • 1.7.1                                ...           2 years ago
  • 1.7.0                                ...           2 years ago
  • 1.6.2                                ...           2 years ago
  • 1.6.1                                ...           2 years ago
  • 1.6.0                                ...           2 years ago
  • 1.5.0                                ...           2 years ago
  • 1.4.1                                ...           3 years ago
  • 1.4.0                                ...           3 years ago
  • 1.3.5                                ...           3 years ago
  • 1.3.4                                ...           3 years ago
  • 1.3.3                                ...           3 years ago
  • 1.3.2                                ...           3 years ago
  • 1.3.1                                ...           3 years ago
  • 1.3.0                                ...           3 years ago
  • 1.2.1                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.6                                ...           3 years ago
  • 1.1.5                                ...           3 years ago
  • 1.1.4                                ...           3 years ago
  • 1.1.3                                ...           3 years ago
  • 1.1.2                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.0.11                                ...           3 years ago
  • 1.0.10                                ...           3 years ago
  • 1.0.9                                ...           3 years ago
  • 1.0.8                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.4-alpha.0                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.3-alpha.4                                ...           3 years ago
  • 1.0.3-alpha.3                                ...           3 years ago
  • 1.0.3-alpha.2                                ...           3 years ago
  • 1.0.3-alpha.1                                ...           3 years ago
  • 1.0.3-alpha.0                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 1.0.0-alpha.3                                ...           3 years ago
  • 1.0.0-alpha.2                                ...           3 years ago
  • 1.0.0-alpha.1                                ...           3 years ago
  • 0.5.16                                ...           3 years ago
  • 1.0.0-alpha.0                                ...           3 years ago
  • 0.5.16-alpha.1                                ...           3 years ago
  • 0.5.15                                ...           3 years ago
  • 0.5.13                                ...           3 years ago
  • 0.5.11                                ...           3 years ago
  • 0.5.10                                ...           3 years ago
  • 0.5.9                                ...           3 years ago
  • 0.5.8                                ...           3 years ago
  • 0.5.7                                ...           3 years ago
  • 0.5.6                                ...           3 years ago
  • 0.5.5                                ...           3 years ago
  • 0.5.4                                ...           3 years ago
  • 0.5.3                                ...           3 years ago
  • 0.5.2                                ...           3 years ago
  • 0.5.1                                ...           3 years ago
  • 0.5.0                                ...           3 years ago
  • 0.4.16-alpha.0                                ...           3 years ago
  • 0.4.15                                ...           3 years ago
  • 0.4.14                                ...           3 years ago
  • 0.4.13                                ...           3 years ago
  • 0.4.12                                ...           3 years ago
  • 0.4.11                                ...           3 years ago
  • 0.4.10                                ...           3 years ago
  • 0.4.8                                ...           3 years ago
  • 0.4.8-alpha.0                                ...           3 years ago
  • 0.4.7                                ...           3 years ago
  • 0.4.6                                ...           3 years ago
  • 0.4.5                                ...           3 years ago
  • 0.4.5-alpha.0                                ...           3 years ago
  • 0.4.4                                ...           3 years ago
  • 0.4.3                                ...           3 years ago
  • 0.4.2                                ...           3 years ago
  • 0.4.1                                ...           3 years ago
  • 0.4.1-alpha.0                                ...           3 years ago
  • 0.4.0                                ...           3 years ago
  • 0.3.16-alpha.3                                ...           3 years ago
  • 0.3.15                                ...           3 years ago
  • 0.3.14                                ...           3 years ago
  • 0.3.13                                ...           3 years ago
  • 0.3.12                                ...           3 years ago
  • 0.3.10                                ...           3 years ago
  • 0.3.9                                ...           3 years ago
  • 0.3.8                                ...           3 years ago
  • 0.3.6                                ...           3 years ago
  • 0.3.5                                ...           3 years ago
  • 0.3.4                                ...           3 years ago
  • 0.3.4-alpha.0                                ...           3 years ago
  • 0.0.0-experimental-75bef0c7 [deprecated]           ...           3 years ago
  • 0.3.3                                ...           3 years ago
  • 0.3.2                                ...           3 years ago
  • 0.3.1                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
  • 0.2.20                                ...           4 years ago
  • 0.2.19                                ...           4 years ago
  • 0.0.0-experimental-c674b41b                                ...           4 years ago
  • 0.2.18                                ...           4 years ago
  • 0.2.17                                ...           4 years ago
  • 0.2.16                                ...           4 years ago
  • 0.0.0-experimental-82f33251 [deprecated]           ...           4 years ago
  • 0.0.0-experimental-6e3a19f0 [deprecated]           ...           4 years ago
  • 0.2.15                                ...           4 years ago
  • 0.0.0-experimental-4b8328e4 [deprecated]           ...           4 years ago
  • 0.2.14                                ...           4 years ago
  • 0.2.13                                ...           4 years ago
  • 0.2.12                                ...           4 years ago
  • 0.2.11                                ...           4 years ago
  • 0.0.0-experimental-2640f652 [deprecated]           ...           4 years ago
  • 0.2.10                                ...           4 years ago
  • 0.2.9                                ...           4 years ago
  • 0.2.8                                ...           4 years ago
  • 0.2.7                                ...           4 years ago
  • 0.0.0-experimental-e8ede605 [deprecated]           ...           4 years ago
  • 0.0.0-experimental-747d6cb4 [deprecated]           ...           4 years ago
  • 0.0.0-experimental-57709165 [deprecated]           ...           4 years ago
  • 0.2.6                                ...           4 years ago
  • 0.2.5                                ...           4 years ago
  • 0.2.4                                ...           4 years ago
  • 0.2.3                                ...           4 years ago
  • 0.2.2                                ...           4 years ago
  • 0.2.1                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (9)
Dev Dependencies (6)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |