@bugzy-ai/bugzy 1.18.2 → 1.18.4

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.
Files changed (61) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +273 -273
  3. package/dist/cli/index.cjs +295 -210
  4. package/dist/cli/index.cjs.map +1 -1
  5. package/dist/cli/index.js +294 -209
  6. package/dist/cli/index.js.map +1 -1
  7. package/dist/index.cjs +291 -206
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.js +291 -206
  10. package/dist/index.js.map +1 -1
  11. package/dist/subagents/index.cjs +115 -137
  12. package/dist/subagents/index.cjs.map +1 -1
  13. package/dist/subagents/index.js +115 -137
  14. package/dist/subagents/index.js.map +1 -1
  15. package/dist/subagents/metadata.cjs +12 -18
  16. package/dist/subagents/metadata.cjs.map +1 -1
  17. package/dist/subagents/metadata.js +12 -18
  18. package/dist/subagents/metadata.js.map +1 -1
  19. package/dist/tasks/index.cjs +142 -54
  20. package/dist/tasks/index.cjs.map +1 -1
  21. package/dist/tasks/index.js +142 -54
  22. package/dist/tasks/index.js.map +1 -1
  23. package/dist/templates/init/.bugzy/runtime/knowledge-base.md +61 -0
  24. package/dist/templates/init/.bugzy/runtime/knowledge-maintenance-guide.md +97 -0
  25. package/dist/templates/init/.bugzy/runtime/project-context.md +35 -0
  26. package/dist/templates/init/.bugzy/runtime/subagent-memory-guide.md +87 -0
  27. package/dist/templates/init/.bugzy/runtime/templates/test-plan-template.md +50 -0
  28. package/dist/templates/init/.bugzy/runtime/templates/test-result-schema.md +498 -0
  29. package/dist/templates/init/.bugzy/runtime/test-execution-strategy.md +535 -0
  30. package/dist/templates/init/.bugzy/runtime/testing-best-practices.md +632 -0
  31. package/dist/templates/init/.gitignore-template +25 -0
  32. package/package.json +95 -95
  33. package/templates/init/.bugzy/runtime/knowledge-base.md +61 -61
  34. package/templates/init/.bugzy/runtime/knowledge-maintenance-guide.md +97 -97
  35. package/templates/init/.bugzy/runtime/project-context.md +35 -35
  36. package/templates/init/.bugzy/runtime/subagent-memory-guide.md +87 -87
  37. package/templates/init/.bugzy/runtime/templates/event-examples.md +194 -194
  38. package/templates/init/.bugzy/runtime/templates/test-plan-template.md +50 -50
  39. package/templates/init/.bugzy/runtime/templates/test-result-schema.md +498 -498
  40. package/templates/init/.claude/settings.json +28 -28
  41. package/templates/init/.env.testdata +18 -18
  42. package/templates/init/.gitignore-template +24 -24
  43. package/templates/init/AGENTS.md +155 -155
  44. package/templates/init/CLAUDE.md +157 -157
  45. package/templates/init/test-runs/README.md +45 -45
  46. package/templates/init/tests/CLAUDE.md +193 -193
  47. package/templates/init/tests/docs/test-execution-strategy.md +535 -535
  48. package/templates/init/tests/docs/testing-best-practices.md +724 -724
  49. package/templates/playwright/BasePage.template.ts +190 -190
  50. package/templates/playwright/auth.setup.template.ts +89 -89
  51. package/templates/playwright/dataGenerators.helper.template.ts +148 -148
  52. package/templates/playwright/dateUtils.helper.template.ts +96 -96
  53. package/templates/playwright/pages.fixture.template.ts +50 -50
  54. package/templates/playwright/playwright.config.template.ts +97 -97
  55. package/templates/playwright/reporters/__tests__/bugzy-reporter-failure-classification.test.ts +299 -299
  56. package/templates/playwright/reporters/__tests__/bugzy-reporter-manifest-merge.test.ts +329 -329
  57. package/templates/playwright/reporters/__tests__/playwright.config.ts +5 -5
  58. package/templates/playwright/reporters/bugzy-reporter.ts +784 -784
  59. package/templates/init/.bugzy/runtime/handlers/messages/feedback.md +0 -178
  60. package/templates/init/.bugzy/runtime/handlers/messages/question.md +0 -122
  61. package/templates/init/.bugzy/runtime/handlers/messages/status.md +0 -146
@@ -1,97 +1,97 @@
1
- import { defineConfig, devices } from '@playwright/test';
2
- import * as dotenv from 'dotenv';
3
- import * as path from 'path';
4
-
5
- // Load non-secret environment variables from .env.testdata
6
- dotenv.config({ path: path.resolve(__dirname, '.env.testdata') });
7
-
8
- // Load secret environment variables from .env (for local development)
9
- dotenv.config({ path: path.resolve(__dirname, '.env') });
10
-
11
- /**
12
- * Playwright Configuration
13
- * Generated by Bugzy - https://github.com/bugzy-ai/bugzy
14
- *
15
- * This configuration follows Playwright best practices:
16
- * - Parallel execution for speed
17
- * - Retries in CI for stability
18
- * - Trace capture for debugging
19
- * - Optimized artifact collection
20
- */
21
-
22
- export default defineConfig({
23
- // Test directory
24
- testDir: './tests/specs',
25
-
26
- // Fully parallel test execution
27
- fullyParallel: true,
28
-
29
- // Fail the build on CI if you accidentally left test.only in the source code
30
- forbidOnly: !!process.env.CI,
31
-
32
- // Retry on CI only (2 retries), no retries locally
33
- retries: process.env.CI ? 2 : 0,
34
-
35
- // Opt out of parallel tests on CI for stability (can be adjusted)
36
- workers: process.env.CI ? 2 : undefined,
37
-
38
- // Reporters
39
- reporter: [
40
- ['./reporters/bugzy-reporter.ts']
41
- ],
42
-
43
- // Global timeout
44
- timeout: 30000,
45
-
46
- // Expect timeout
47
- expect: {
48
- timeout: 5000
49
- },
50
-
51
- // Shared settings for all projects
52
- use: {
53
- // Base URL from environment variable
54
- baseURL: process.env.TEST_BASE_URL || 'http://localhost:3000',
55
-
56
- // Collect trace on failure
57
- trace: 'retain-on-failure',
58
-
59
- // Screenshot only on failure
60
- screenshot: 'only-on-failure',
61
-
62
- // Video for all tests (always record)
63
- video: 'on',
64
-
65
- // Maximum time for actions (click, fill, etc.)
66
- actionTimeout: 10000,
67
- },
68
-
69
- // Configure projects for different browsers
70
- projects: [
71
- // Setup project - runs once before other tests
72
- {
73
- name: 'setup',
74
- testDir: './tests/setup',
75
- testMatch: /.*\.setup\.ts/,
76
- },
77
-
78
- // Chromium
79
- {
80
- name: 'chromium',
81
- use: {
82
- ...devices['Desktop Chrome'],
83
- // Use authenticated state if available
84
- storageState: 'tests/.auth/user.json',
85
- },
86
- dependencies: ['setup'],
87
- },
88
- ],
89
-
90
- // Run your local dev server before starting the tests
91
- // Uncomment and configure if needed:
92
- // webServer: {
93
- // command: 'npm run dev',
94
- // url: 'http://127.0.0.1:3000',
95
- // reuseExistingServer: !process.env.CI,
96
- // },
97
- });
1
+ import { defineConfig, devices } from '@playwright/test';
2
+ import * as dotenv from 'dotenv';
3
+ import * as path from 'path';
4
+
5
+ // Load non-secret environment variables from .env.testdata
6
+ dotenv.config({ path: path.resolve(__dirname, '.env.testdata') });
7
+
8
+ // Load secret environment variables from .env (for local development)
9
+ dotenv.config({ path: path.resolve(__dirname, '.env') });
10
+
11
+ /**
12
+ * Playwright Configuration
13
+ * Generated by Bugzy - https://github.com/bugzy-ai/bugzy
14
+ *
15
+ * This configuration follows Playwright best practices:
16
+ * - Parallel execution for speed
17
+ * - Retries in CI for stability
18
+ * - Trace capture for debugging
19
+ * - Optimized artifact collection
20
+ */
21
+
22
+ export default defineConfig({
23
+ // Test directory
24
+ testDir: './tests/specs',
25
+
26
+ // Fully parallel test execution
27
+ fullyParallel: true,
28
+
29
+ // Fail the build on CI if you accidentally left test.only in the source code
30
+ forbidOnly: !!process.env.CI,
31
+
32
+ // Retry on CI only (2 retries), no retries locally
33
+ retries: process.env.CI ? 2 : 0,
34
+
35
+ // Opt out of parallel tests on CI for stability (can be adjusted)
36
+ workers: process.env.CI ? 2 : undefined,
37
+
38
+ // Reporters
39
+ reporter: [
40
+ ['./reporters/bugzy-reporter.ts']
41
+ ],
42
+
43
+ // Global timeout
44
+ timeout: 30000,
45
+
46
+ // Expect timeout
47
+ expect: {
48
+ timeout: 5000
49
+ },
50
+
51
+ // Shared settings for all projects
52
+ use: {
53
+ // Base URL from environment variable
54
+ baseURL: process.env.TEST_BASE_URL || 'http://localhost:3000',
55
+
56
+ // Collect trace on failure
57
+ trace: 'retain-on-failure',
58
+
59
+ // Screenshot only on failure
60
+ screenshot: 'only-on-failure',
61
+
62
+ // Video for all tests (always record)
63
+ video: 'on',
64
+
65
+ // Maximum time for actions (click, fill, etc.)
66
+ actionTimeout: 10000,
67
+ },
68
+
69
+ // Configure projects for different browsers
70
+ projects: [
71
+ // Setup project - runs once before other tests
72
+ {
73
+ name: 'setup',
74
+ testDir: './tests/setup',
75
+ testMatch: /.*\.setup\.ts/,
76
+ },
77
+
78
+ // Chromium
79
+ {
80
+ name: 'chromium',
81
+ use: {
82
+ ...devices['Desktop Chrome'],
83
+ // Use authenticated state if available
84
+ storageState: 'tests/.auth/user.json',
85
+ },
86
+ dependencies: ['setup'],
87
+ },
88
+ ],
89
+
90
+ // Run your local dev server before starting the tests
91
+ // Uncomment and configure if needed:
92
+ // webServer: {
93
+ // command: 'npm run dev',
94
+ // url: 'http://127.0.0.1:3000',
95
+ // reuseExistingServer: !process.env.CI,
96
+ // },
97
+ });