@keber/qa-framework 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -9
- package/package.json +1 -1
- package/scripts/init.js +37 -7
package/README.md
CHANGED
|
@@ -28,27 +28,38 @@ This framework was designed to be:
|
|
|
28
28
|
|
|
29
29
|
## Quick Start
|
|
30
30
|
|
|
31
|
-
###
|
|
31
|
+
### Install from npm
|
|
32
32
|
|
|
33
33
|
```bash
|
|
34
|
-
npm install
|
|
35
|
-
npx qa-framework init
|
|
34
|
+
npm install @keber/qa-framework
|
|
36
35
|
```
|
|
37
36
|
|
|
38
|
-
|
|
37
|
+
The postinstall script scaffolds the `qa/` structure automatically. No need to run `init` manually.
|
|
38
|
+
|
|
39
|
+
### Using with an AI agent (GitHub Copilot, Claude, etc.)
|
|
40
|
+
|
|
41
|
+
Use this prompt in your IDE agent chat:
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
Install @keber/qa-framework and set up the project following qa/AGENT-NEXT-STEPS.md
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
The install creates `qa/AGENT-NEXT-STEPS.md` with the exact steps the agent needs to complete the setup (optional integrations, module configuration, credentials, etc.).
|
|
48
|
+
|
|
49
|
+
### Using manually (without an agent)
|
|
39
50
|
|
|
40
51
|
```bash
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
node tools/qa-framework/scripts/cli.js init
|
|
52
|
+
npm install @keber/qa-framework
|
|
53
|
+
# then read qa/AGENT-NEXT-STEPS.md for next steps
|
|
44
54
|
```
|
|
45
55
|
|
|
46
56
|
The `init` command will:
|
|
47
57
|
|
|
48
58
|
1. Create the `qa/` directory tree in your project root
|
|
49
|
-
2. Copy all base templates into place
|
|
59
|
+
2. Copy all base templates and agent instructions into place
|
|
50
60
|
3. Create `qa/qa-framework.config.json` for project-specific settings
|
|
51
|
-
4.
|
|
61
|
+
4. Create `.github/copilot-instructions.md` with QA agent behavior rules
|
|
62
|
+
5. Create `qa/AGENT-NEXT-STEPS.md` with follow-up steps
|
|
52
63
|
|
|
53
64
|
---
|
|
54
65
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keber/qa-framework",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Reusable spec-driven QA framework for IDE-agent-assisted automated testing. Installable as an npm package. Provides structure, templates, agent instructions, and optional integrations for Playwright and Azure DevOps.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"qa",
|
package/scripts/init.js
CHANGED
|
@@ -247,6 +247,7 @@ This project uses \`@keber/qa-framework\` v${config.frameworkVersion ?? '1.0.0'}
|
|
|
247
247
|
|
|
248
248
|
## Agent behavior rules
|
|
249
249
|
|
|
250
|
+
0. **On every conversation start:** check if \`qa/AGENT-NEXT-STEPS.md\` exists. If it does, read it and complete its steps before anything else.
|
|
250
251
|
1. Before performing any QA task, read the relevant instruction file from \`qa/00-guides/\`
|
|
251
252
|
2. Always save artifacts in the correct \`qa/\` subfolder - refer to \`qa/QA-STRUCTURE-GUIDE.md\`
|
|
252
253
|
3. Never hardcode credentials - always use env vars and \`<PLACEHOLDER>\` in documentation
|
|
@@ -268,13 +269,42 @@ This project uses \`@keber/qa-framework\` v${config.frameworkVersion ?? '1.0.0'}
|
|
|
268
269
|
`;
|
|
269
270
|
writeIfMissing(copilotInstrPath, copilotInstrContent);
|
|
270
271
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
272
|
+
// --- AGENT-NEXT-STEPS.md — readable by the agent after install ---
|
|
273
|
+
const nextStepsContent = `# ✅ @keber/qa-framework installed successfully
|
|
274
|
+
|
|
275
|
+
> This file was generated automatically by the postinstall script.
|
|
276
|
+
> Read it and follow the steps below, then delete this file.
|
|
277
|
+
|
|
278
|
+
## What was scaffolded
|
|
279
|
+
|
|
280
|
+
- \`qa/\` folder structure with spec templates and agent instructions
|
|
281
|
+
- \`.github/copilot-instructions.md\` with QA agent behavior rules
|
|
282
|
+
|
|
283
|
+
## Required next steps
|
|
284
|
+
|
|
285
|
+
### 1. Configure your project modules
|
|
286
|
+
Edit \`qa/qa-framework.config.json\` and add your project modules under the \`"modules"\` array.
|
|
287
|
+
|
|
288
|
+
### 2. Optional integrations
|
|
289
|
+
|
|
290
|
+
**Azure DevOps integration:**
|
|
291
|
+
\`\`\`bash
|
|
292
|
+
npm install @keber/ado-qa
|
|
293
|
+
\`\`\`
|
|
294
|
+
|
|
295
|
+
**Playwright automation:**
|
|
296
|
+
\`\`\`bash
|
|
297
|
+
npm install @playwright/test
|
|
298
|
+
cd qa/07-automation && npm install && npx playwright install chromium
|
|
299
|
+
\`\`\`
|
|
300
|
+
|
|
301
|
+
### 3. Credentials
|
|
302
|
+
- Copy \`qa/07-automation/.env.example\` → \`qa/07-automation/.env\` and fill in credentials
|
|
303
|
+
- Add \`qa/07-automation/.env\` and \`qa/07-automation/.auth/\` to \`.gitignore\`
|
|
304
|
+
`;
|
|
305
|
+
const nextStepsPath = path.join(qaRoot, 'AGENT-NEXT-STEPS.md');
|
|
306
|
+
fs.writeFileSync(nextStepsPath, nextStepsContent, 'utf8');
|
|
307
|
+
console.log(` [created] ${path.relative(cwd, nextStepsPath)}`);
|
|
278
308
|
|
|
279
309
|
// -----------------------------------------------------------------------
|
|
280
310
|
// Helpers
|