@toolstackhq/create-qa-patterns
v1.0.18
Published
CLI for generating QA framework templates.
Downloads
1,882
Readme
@toolstackhq/create-qa-patterns
CLI for generating QA framework templates from qa-patterns.
Install
npm install -g @toolstackhq/create-qa-patternsUsage
create-qa-patternsGenerate into a new directory:
create-qa-patterns my-projectThe generated project is initialized with git init automatically and includes a default .gitignore for common local artifacts.
Generate the Playwright template explicitly:
create-qa-patterns playwright-template my-projectGenerate the Cypress template explicitly:
create-qa-patterns cypress-template my-projectcreate-qa-patterns wdio-template my-projectGenerate without post-create prompts, which is useful for CI or scripted setup:
create-qa-patterns playwright-template my-project --yes --no-install --no-setup --no-testUpgrade a generated project
Generated projects now include a .qa-patterns.json metadata file. It tracks the last applied managed template baseline so the CLI can update infrastructure files conservatively later.
Check for safe updates:
create-qa-patterns upgrade check my-projectApply only safe managed-file updates:
create-qa-patterns upgrade apply --safe my-projectThe upgrade flow intentionally avoids overwriting user-owned test and page code. It only manages framework infrastructure such as config, scripts, workflows, and package metadata when those files are still unchanged from the generated baseline.
Supported templates
playwright-templatecypress-templatewdio-template
Interactive flow
When run in a terminal, the CLI shows:
- a template picker with keyboard selection
- short template descriptions
- scaffold progress while files are generated
- optional post-generate actions for:
npm installnpm test
For Playwright projects, the interactive flow also offers:
npx playwright install
For non-interactive automation, the CLI also supports:
--yes--no-install--no-setup--no-test--template <template>
Prerequisite checks
The CLI checks:
- required Node.js version
npmavailability for install and test actionsnpxavailability for template setup that depends on itdockeravailability and warns if it is missinggitavailability so the scaffold can start as a repository immediately
If npx playwright install fails because the host is missing browser dependencies, the CLI keeps the generated project and prints the recovery steps instead of treating scaffold generation as failed.
