@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.cjs
CHANGED
|
@@ -1798,6 +1798,19 @@ Create or update test case files in \`./test-cases/\` for the new feature:
|
|
|
1798
1798
|
- Include: objective, preconditions, test steps, expected results
|
|
1799
1799
|
- Mark \`automated: true\` for scenarios that should be automated
|
|
1800
1800
|
|
|
1801
|
+
### Handle Missing Test Data
|
|
1802
|
+
|
|
1803
|
+
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\`:
|
|
1804
|
+
|
|
1805
|
+
1. **DO NOT skip test creation** \u2014 missing data is not a blocker for writing tests
|
|
1806
|
+
2. Add placeholder entries to \`.env.testdata\` for non-secret variables (empty value with comment)
|
|
1807
|
+
3. Reference all variables as \`process.env.VAR_NAME\` in test code \u2014 they'll resolve at runtime
|
|
1808
|
+
4. Create the test cases and specs normally \u2014 tests may fail until data is configured, which is expected
|
|
1809
|
+
5. {{INVOKE_TEAM_COMMUNICATOR}} to notify the team about missing test data that needs to be configured
|
|
1810
|
+
6. Include in the Slack message: which variables are missing, what values they need, and which tests depend on them
|
|
1811
|
+
|
|
1812
|
+
**CRITICAL**: Never conclude "manual verification required" or "BLOCKED" solely because test data is missing. Always create the test artifacts first.
|
|
1813
|
+
|
|
1801
1814
|
### Generate Playwright Specs
|
|
1802
1815
|
|
|
1803
1816
|
{{INVOKE_TEST_CODE_GENERATOR}} to create automated test specs:
|
|
@@ -2482,6 +2495,7 @@ var CONTENT2 = `You are an expert Playwright test automation engineer specializi
|
|
|
2482
2495
|
- Reference variables using \`process.env.VAR_NAME\` in tests
|
|
2483
2496
|
- Add new required variables to \`.env.testdata\`
|
|
2484
2497
|
- NEVER read \`.env\` file (secrets only)
|
|
2498
|
+
- **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.
|
|
2485
2499
|
|
|
2486
2500
|
3. ${MEMORY_READ_INSTRUCTIONS.replace(/{ROLE}/g, "test-code-generator")}
|
|
2487
2501
|
|
|
@@ -6641,24 +6655,22 @@ Run automated Playwright tests and capture results.
|
|
|
6641
6655
|
|
|
6642
6656
|
**Build Playwright Command** based on selector:
|
|
6643
6657
|
|
|
6658
|
+
The playwright.config.ts automatically loads environment variables from .env.testdata and .env files.
|
|
6659
|
+
Use npm scripts to run tests - no manual env export needed.
|
|
6660
|
+
|
|
6644
6661
|
**For file pattern or specific file**:
|
|
6645
6662
|
\`\`\`bash
|
|
6646
|
-
|
|
6663
|
+
npm test -- [selector]
|
|
6647
6664
|
\`\`\`
|
|
6648
6665
|
|
|
6649
6666
|
**For tag**:
|
|
6650
6667
|
\`\`\`bash
|
|
6651
|
-
|
|
6668
|
+
npm test -- --grep "[tag]"
|
|
6652
6669
|
\`\`\`
|
|
6653
6670
|
|
|
6654
6671
|
**For all tests**:
|
|
6655
6672
|
\`\`\`bash
|
|
6656
|
-
|
|
6657
|
-
\`\`\`
|
|
6658
|
-
|
|
6659
|
-
**Execute Tests via Bash:**
|
|
6660
|
-
\`\`\`bash
|
|
6661
|
-
npx playwright test [selector]
|
|
6673
|
+
npm test
|
|
6662
6674
|
\`\`\`
|
|
6663
6675
|
|
|
6664
6676
|
Wait for execution to complete. This may take several minutes depending on test count.
|
|
@@ -7178,7 +7190,8 @@ Before adding ANY variable to .env.testdata, check if it's a secret:
|
|
|
7178
7190
|
1. Scan for TEST_* variable references in test plan and test cases
|
|
7179
7191
|
2. For each variable found:
|
|
7180
7192
|
- If name contains PASSWORD/SECRET/TOKEN/KEY -> Skip (it's a secret, goes in .env only)
|
|
7181
|
-
-
|
|
7193
|
+
- If actual value is known -> Add to .env.testdata with value
|
|
7194
|
+
- If actual value is unknown -> Add to .env.testdata with empty value and \`# TODO: team to configure\` comment
|
|
7182
7195
|
3. Preserve existing variables in .env.testdata
|
|
7183
7196
|
|
|
7184
7197
|
**Example .env.testdata (non-secrets only):**
|