Gathering detailed insights and metrics for cypress-cucumber-preprocessor
Gathering detailed insights and metrics for cypress-cucumber-preprocessor
Gathering detailed insights and metrics for cypress-cucumber-preprocessor
Gathering detailed insights and metrics for cypress-cucumber-preprocessor
@types/cypress-cucumber-preprocessor
TypeScript definitions for cypress-cucumber-preprocessor
@badeball/cypress-cucumber-preprocessor
[![Build status](https://github.com/badeball/cypress-cucumber-preprocessor/actions/workflows/build.yml/badge.svg)](https://github.com/badeball/cypress-cucumber-preprocessor/actions/workflows/build.yml) [![Npm package weekly downloads](https://badgen.net/n
cucumber-json-report-formatter
Cucumber report formatter for @badeball/cypress-cucumber-preprocessor report
@badeball/cypress-configuration
[![Build status](https://github.com/badeball/cypress-configuration/actions/workflows/build.yml/badge.svg)](https://github.com/badeball/cypress-configuration/actions/workflows/build.yml) [![Npm package weekly downloads](https://badgen.net/npm/dw/@badeball/
Run cucumber/gherkin-syntaxed specs with Cypress
npm install cypress-cucumber-preprocessor
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
1,323 Stars
943 Commits
149 Forks
44 Watching
26 Branches
59 Contributors
Updated on 21 Nov 2024
TypeScript (55.76%)
Gherkin (43.54%)
JavaScript (0.69%)
Cumulative downloads
Total Downloads
Last day
-5.3%
34,860
Compared to previous day
Last week
-0.1%
198,261
Compared to previous week
Last month
4.1%
889,724
Compared to previous month
Last year
-44.1%
10,562,987
Compared to previous year
14
This preprocessor aims to provide a developer experience and behavior similar to that of Cucumber, to Cypress.
:information_source: The repositor has recently moved from
github.com/TheBrainFamily
togithub.com/badeball
. Read more about the transfer of ownership here.
$ npm install @badeball/cypress-cucumber-preprocessor
The preprocessor (with its dependencies) parses Gherkin documents and allows you to write tests as shown below.
1# cypress/e2e/duckduckgo.feature 2Feature: duckduckgo.com 3 Scenario: visiting the frontpage 4 When I visit duckduckgo.com 5 Then I should see a search bar
1// cypress/e2e/duckduckgo.ts 2import { When, Then } from "@badeball/cypress-cucumber-preprocessor"; 3 4When("I visit duckduckgo.com", () => { 5 cy.visit("https://www.duckduckgo.com"); 6}); 7 8Then("I should see a search bar", () => { 9 cy.get("input").should( 10 "have.attr", 11 "placeholder", 12 "Search the web without being tracked" 13 ); 14});
Building can be done once using:
$ npm run build
Or upon file changes with:
$ npm run watch
There are multiple types of tests, all ran using npm scripts:
$ npm run test:fmt
$ npm run test:types
$ npm run test:unit
$ npm run test:integration # make sure to build first
$ npm run test # runs all of the above
A special thanks goes out to Łukasz Gandecki for developing and maintaning the cypress-cucumber integration before me, in addition to all other contributors. Some of the work has partially been sponsored by Klaveness Digital.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
30 commit(s) and 24 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/28 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More