@assurka/cypress
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

Assurka Studio - Cypress Plugin

Plugin to allow cypress to integrate to Assurka Studio

Installation

Requires Node version 10 or above.

npm install --save-dev @assurka/cypress

Usage

Learn more about how the Plugins file works, see plugins file.

Cypress 10.0+

import { defineConfig } from "cypress";
import { assurka } from "@assurka/cypress";

export default defineConfig({
  e2e: {
    setupNodeEvents(on, config) {
      assurka(on, config, {
        projectId: "projectId",
        secret: "secret",
        testPlanId: "testPlanId",
      });
    },
  },
});
const { defineConfig } = require("cypress");
const { assurka } = require("@assurka/cypress");

module.exports = defineConfig({
  e2e: {
    setupNodeEvents(on, config) {
      assurka(on, config, {
        projectId: "projectId",
        secret: "secret",
        testPlanId: "testPlanId",
      });
    },
  },
});

Prior to Cypress 10.0

import { defineConfig } from "cypress";
import { assurka } from "@assurka/cypress";

module.exports = (on, config) => {
  assurka(on, config, {
    projectId: "projectId",
    secret: "secret",
    testPlanId: "testPlanId",
  });
};
const assurka = require("@assurka/cypress");

module.exports = (on, config) => {
  assurka(on, config, {
    projectId: "projectId",
    secret: "secret",
    testPlanId: "testPlanId",
  });
};

License

Copyright © 2022 Assurka Limited

Package Sidebar

Install

npm i @assurka/cypress

Weekly Downloads

0

Version

1.0.5

License

SEE LICENSE IN LICENSE.md

Unpacked Size

585 kB

Total Files

47

Last publish

Collaborators

  • paul-assurka