Background:
I have an automation setup using Playwright + Cucumber BDD + NPM + JavaScript. My execution scripts are defined on package.json and the respective config details on cucumber.js.
Problem Statement:
I would like to know how can I configure the npm run test command in such a way that I can run a set of tests from a dir path/ folder or a specific test file.
I have the tag config setup (tags: process…npm_config_tags in cucumber.js) and whenever I set a specific tag in a test file(s) and execute the command npm run test:env –TAGS=”@TagName”, it executes only the tests with that particular tag. I would like to have a similar setup using which I can pass a folder path to the command and it runs all the tests under that folder.
Narendra Boyanapalli is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.