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

0.2.0 • Public • Published

@qavajs/cypress-runner-adapter

Adapter to run cucumberjs tests via cypress test runner

Installation

npm install @qavajs/cypress-runner-adapter

Basic Configuration

const { defineConfig } = require('cypress');
const cucumber = require('@qavajs/cypress-runner-adapter/adapter');

module.exports = defineConfig({
    e2e: {
        specPattern: 'cypress/feature/**/*.feature',
        supportFile: 'cypress/support/e2e.js',
        setupNodeEvents(on, config) {
            on('file:preprocessor', cucumber)
        },
    },
});

support/e2e.js is entry point with step definition;

import { When, setWorldConstructor } from '@qavajs/cypress-runner-adapter';

class World {
    
}
setWorldConstructor(World);

When('open {string} url', function (url) {
    cy.visit(url);
});

Readme

Keywords

none

Package Sidebar

Install

npm i @qavajs/cypress-runner-adapter

Weekly Downloads

8

Version

0.2.0

License

MIT

Unpacked Size

20.5 kB

Total Files

21

Last publish

Collaborators

  • alexandr_legchilov
  • kirill_bogdanets
  • alexgalichenko