Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
check-cucumber
Advanced tools
CLI tool that checks Gherkin formatted feature files and imports them into Testomatio.
CLI tool that checks Gherkin formatted feature files and imports them into Testomatio.
To import tests into Testomatio run check-cucumber
via npx:
TESTOMATIO=API_KEY npx check-cucumber -d example/cucumber
Note: replace API_KEY wit key from Testomatio
-d, --dir
- Directory of the project-c, --codeceptjs
- If it is codeceptjs project use this optionNote : Running this will create Suites with folder and file name as sub suites.
To change host of endpoint for receiving data, and set it to other than app.testomat.io use TESTOMATIO_URL environment variable:
TESTOMATIO_URL=https://beta.testomat.io
To set Testomatio IDs for scenarios and features in files run this command with --update-ids
option.
TESTOMATIO=API_KEY npx check-cucumber -d example/cucumber --update-ids
Scenarios should already be imported into Testomatio
If a test from a previous import was not found on next import it is marked as "detached". This is done to ensure that deleted tests are not staying in Testomatio while deleted in codebase.
To disable this behavior and don't mark anything on detached on import use --no-detached
option
TESTOMATIO=API_KEY npx check-cucumber -d example/cucumber --no-detached
By default check-cucumber
doesn't wait for all tests to be processed. It sends request to Testomatio and exits. To wait for processing to finish use --sync
option.
TESTOMATIO=API_KEY npx check-cucumber -d example/cucumber --sync
Please note, that this will take a long time on a large codebase.
If you want to import the synced project as new project, you have to clean the test ids. To clean the project use --clean-ids
TESTOMATIO=API_KEY npx check-cucumber -d example/cucumber --clean-ids
TESTOMATIO is API key for old project.
Note: If you don't have access to the old project you can still clean the project using --unsafe-clean-ids
. This will clear the IDs that match the regex @T****
. So if you have a tag like @Test
this may also be removed. If you use this option make sure if all the test titles a proper before committing the tests in GIT:
TESTOMATIO=API_KEY npx check-cucumber -d example/cucumber --unsafe-clean-ids
To put all imported tests into a specific suite (folder) pass in TESTOMATIO_PREPEND_DIR
environment variable:
TESTOMATIO_PREPEND_DIR="MyTESTS" TESTOMATIO=API_KEY npx check-cucumber -d example/cucumber
License MIT.
Part of Testomat.io
0.4.0
--update-ids
option to automatically assign test ids--no-detached
option to not mark tests on detached on import--clean-ids
command to remove automatically set ids with --update-ids
command--unsafe-clean-ids
command to remove automatically set ids, without server verificationTESTOMATIO_PREPEND_DIR="MyTESTS"
param to import tests into a specific folder/suite.FAQs
CLI tool that checks Gherkin formatted feature files and imports them into Testomatio.
The npm package check-cucumber receives a total of 364 weekly downloads. As such, check-cucumber popularity was classified as not popular.
We found that check-cucumber demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.