@bugzy-ai/bugzy 1.12.0 → 1.12.2
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/dist/cli/index.cjs +22 -9
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +22 -9
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +22 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -9
- package/dist/index.js.map +1 -1
- package/dist/subagents/index.cjs +1 -0
- package/dist/subagents/index.cjs.map +1 -1
- package/dist/subagents/index.js +1 -0
- package/dist/subagents/index.js.map +1 -1
- package/dist/tasks/index.cjs +13 -0
- package/dist/tasks/index.cjs.map +1 -1
- package/dist/tasks/index.js +13 -0
- package/dist/tasks/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1742,6 +1742,19 @@ Create or update test case files in \`./test-cases/\` for the new feature:
|
|
|
1742
1742
|
- Include: objective, preconditions, test steps, expected results
|
|
1743
1743
|
- Mark \`automated: true\` for scenarios that should be automated
|
|
1744
1744
|
|
|
1745
|
+
### Handle Missing Test Data
|
|
1746
|
+
|
|
1747
|
+
If the Jira issue or PR references test accounts/data (e.g., TEST_PREMIUM_USER, TEST_ADMIN_PASSWORD) that don't exist in \`.env.testdata\`:
|
|
1748
|
+
|
|
1749
|
+
1. **DO NOT skip test creation** \u2014 missing data is not a blocker for writing tests
|
|
1750
|
+
2. Add placeholder entries to \`.env.testdata\` for non-secret variables (empty value with comment)
|
|
1751
|
+
3. Reference all variables as \`process.env.VAR_NAME\` in test code \u2014 they'll resolve at runtime
|
|
1752
|
+
4. Create the test cases and specs normally \u2014 tests may fail until data is configured, which is expected
|
|
1753
|
+
5. {{INVOKE_TEAM_COMMUNICATOR}} to notify the team about missing test data that needs to be configured
|
|
1754
|
+
6. Include in the Slack message: which variables are missing, what values they need, and which tests depend on them
|
|
1755
|
+
|
|
1756
|
+
**CRITICAL**: Never conclude "manual verification required" or "BLOCKED" solely because test data is missing. Always create the test artifacts first.
|
|
1757
|
+
|
|
1745
1758
|
### Generate Playwright Specs
|
|
1746
1759
|
|
|
1747
1760
|
{{INVOKE_TEST_CODE_GENERATOR}} to create automated test specs:
|
|
@@ -2426,6 +2439,7 @@ var CONTENT2 = `You are an expert Playwright test automation engineer specializi
|
|
|
2426
2439
|
- Reference variables using \`process.env.VAR_NAME\` in tests
|
|
2427
2440
|
- Add new required variables to \`.env.testdata\`
|
|
2428
2441
|
- NEVER read \`.env\` file (secrets only)
|
|
2442
|
+
- **If a required variable is missing from \`.env.testdata\`**: Add it with an empty value and a \`# TODO: configure\` comment. Continue creating tests using \`process.env.VAR_NAME\` \u2014 tests will fail until configured, which is expected. Do NOT skip test creation because of missing data.
|
|
2429
2443
|
|
|
2430
2444
|
3. ${MEMORY_READ_INSTRUCTIONS.replace(/{ROLE}/g, "test-code-generator")}
|
|
2431
2445
|
|
|
@@ -6585,24 +6599,22 @@ Run automated Playwright tests and capture results.
|
|
|
6585
6599
|
|
|
6586
6600
|
**Build Playwright Command** based on selector:
|
|
6587
6601
|
|
|
6602
|
+
The playwright.config.ts automatically loads environment variables from .env.testdata and .env files.
|
|
6603
|
+
Use npm scripts to run tests - no manual env export needed.
|
|
6604
|
+
|
|
6588
6605
|
**For file pattern or specific file**:
|
|
6589
6606
|
\`\`\`bash
|
|
6590
|
-
|
|
6607
|
+
npm test -- [selector]
|
|
6591
6608
|
\`\`\`
|
|
6592
6609
|
|
|
6593
6610
|
**For tag**:
|
|
6594
6611
|
\`\`\`bash
|
|
6595
|
-
|
|
6612
|
+
npm test -- --grep "[tag]"
|
|
6596
6613
|
\`\`\`
|
|
6597
6614
|
|
|
6598
6615
|
**For all tests**:
|
|
6599
6616
|
\`\`\`bash
|
|
6600
|
-
|
|
6601
|
-
\`\`\`
|
|
6602
|
-
|
|
6603
|
-
**Execute Tests via Bash:**
|
|
6604
|
-
\`\`\`bash
|
|
6605
|
-
npx playwright test [selector]
|
|
6617
|
+
npm test
|
|
6606
6618
|
\`\`\`
|
|
6607
6619
|
|
|
6608
6620
|
Wait for execution to complete. This may take several minutes depending on test count.
|
|
@@ -7122,7 +7134,8 @@ Before adding ANY variable to .env.testdata, check if it's a secret:
|
|
|
7122
7134
|
1. Scan for TEST_* variable references in test plan and test cases
|
|
7123
7135
|
2. For each variable found:
|
|
7124
7136
|
- If name contains PASSWORD/SECRET/TOKEN/KEY -> Skip (it's a secret, goes in .env only)
|
|
7125
|
-
-
|
|
7137
|
+
- If actual value is known -> Add to .env.testdata with value
|
|
7138
|
+
- If actual value is unknown -> Add to .env.testdata with empty value and \`# TODO: team to configure\` comment
|
|
7126
7139
|
3. Preserve existing variables in .env.testdata
|
|
7127
7140
|
|
|
7128
7141
|
**Example .env.testdata (non-secrets only):**
|