check-cucumber
CLI tool that checks Gherkin formatted feature files and imports them into Testomatio.
Cli
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
CLI Options:
-d, --dir
- Directory of the project-c, --codeceptjs
- If it is codecept project use this option
Note : 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
Sample Output
![check-cucumber-output](https://user-images.githubusercontent.com/24666922/78559548-2dc7fb00-7832-11ea-8c69-0722222a82fe.png)
Assign IDs
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
License MIT
Part of Testomat.io