@bugzy-ai/bugzy 1.19.3 → 1.20.0

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 (56) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +273 -273
  3. package/dist/cli/index.cjs +76 -8
  4. package/dist/cli/index.cjs.map +1 -1
  5. package/dist/cli/index.js +75 -7
  6. package/dist/cli/index.js.map +1 -1
  7. package/dist/index.cjs +73 -5
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.js +73 -5
  10. package/dist/index.js.map +1 -1
  11. package/dist/subagents/index.cjs.map +1 -1
  12. package/dist/subagents/index.js.map +1 -1
  13. package/dist/subagents/metadata.cjs.map +1 -1
  14. package/dist/subagents/metadata.js.map +1 -1
  15. package/dist/tasks/index.cjs +27 -4
  16. package/dist/tasks/index.cjs.map +1 -1
  17. package/dist/tasks/index.js +27 -4
  18. package/dist/tasks/index.js.map +1 -1
  19. package/dist/templates/init/.bugzy/runtime/knowledge-base.md +61 -0
  20. package/dist/templates/init/.bugzy/runtime/knowledge-maintenance-guide.md +97 -0
  21. package/dist/templates/init/.bugzy/runtime/project-context.md +35 -0
  22. package/dist/templates/init/.bugzy/runtime/subagent-memory-guide.md +87 -0
  23. package/dist/templates/init/.bugzy/runtime/templates/test-plan-template.md +50 -0
  24. package/dist/templates/init/.bugzy/runtime/templates/test-result-schema.md +498 -0
  25. package/dist/templates/init/.bugzy/runtime/test-execution-strategy.md +535 -0
  26. package/dist/templates/init/.bugzy/runtime/testing-best-practices.md +632 -0
  27. package/dist/templates/init/.gitignore-template +25 -0
  28. package/package.json +95 -95
  29. package/templates/init/.bugzy/runtime/hooks/pre-compact.sh +53 -53
  30. package/templates/init/.bugzy/runtime/hooks/session-start.sh +68 -68
  31. package/templates/init/.bugzy/runtime/knowledge-base.md +61 -61
  32. package/templates/init/.bugzy/runtime/knowledge-maintenance-guide.md +140 -140
  33. package/templates/init/.bugzy/runtime/project-context.md +35 -35
  34. package/templates/init/.bugzy/runtime/subagent-memory-guide.md +122 -122
  35. package/templates/init/.bugzy/runtime/templates/event-examples.md +194 -194
  36. package/templates/init/.bugzy/runtime/templates/test-plan-template.md +50 -50
  37. package/templates/init/.bugzy/runtime/templates/test-result-schema.md +498 -498
  38. package/templates/init/.claude/settings.json +49 -49
  39. package/templates/init/.env.testdata +18 -18
  40. package/templates/init/.gitignore-template +24 -24
  41. package/templates/init/AGENTS.md +155 -155
  42. package/templates/init/CLAUDE.md +157 -157
  43. package/templates/init/test-runs/README.md +45 -45
  44. package/templates/init/tests/CLAUDE.md +199 -199
  45. package/templates/init/tests/docs/test-execution-strategy.md +535 -535
  46. package/templates/init/tests/docs/testing-best-practices.md +724 -724
  47. package/templates/playwright/BasePage.template.ts +190 -190
  48. package/templates/playwright/auth.setup.template.ts +89 -89
  49. package/templates/playwright/dataGenerators.helper.template.ts +148 -148
  50. package/templates/playwright/dateUtils.helper.template.ts +96 -96
  51. package/templates/playwright/pages.fixture.template.ts +50 -50
  52. package/templates/playwright/playwright.config.template.ts +97 -97
  53. package/templates/playwright/reporters/__tests__/bugzy-reporter-failure-classification.test.ts +299 -299
  54. package/templates/playwright/reporters/__tests__/bugzy-reporter-manifest-merge.test.ts +329 -329
  55. package/templates/playwright/reporters/__tests__/playwright.config.ts +5 -5
  56. package/templates/playwright/reporters/bugzy-reporter.ts +784 -784
@@ -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
+ });