-
Install >= NodeJS v14 (Recommendation: Install NodeJS v16)
-
Install PNPM as package manager, because it is faster and more stable
npm install -g pnpm
-
optionally: Install shell tooling (on Windows OS) to become able to execute also shell scripts (for executing tests Unix-based)
-
You have to install the Node package
scripty
globally# with PNPM pnpm install -g scripty
-
You have to set write permissions to the
scripts
andscripts-win
folders under project rootsudo chmod -Rf 777 ./scripts/ sudo chmod -Rf 777 ./scripts-win/
-
Sometimes you have some trouble on Unix based OS starting the tests because the scripty scripts under
/scripts
andscripts-win
have the wrong endcoding for line endings. In that case you have to convert from DOS to UNIX. Therefore you can use the tool dos2unix. First download the tool and install, after you can convert the specific files:# convert all scripty scripts in given folder dos2unix ./scripts/* dos2unix ./scripts-win/*
-
pnpm install
-
pnpm clean
-
Run your tests as described in the following chapters
#### CYPRESS RUN #### # execute all cucumber tests pnpm run cy:run --reporter mocha-allure-reporter # execute only specific cucumber tests pnpm run cy:run --spec cypress/integration/features/webpage.feature --reporter mocha-allure-reporter # execute with @smoke tagged cucumber tests pnpm run cy:run --env tags=@smoke --reporter mocha-allure-reporter
-
Generate Cucumber reports
# generate all cucumber reports pnpm run cucumber:report
-
Notifications
You must be signed in to change notification settings - Fork 0
GRmeB/cypress-cucumber-preprocessor-example
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published