@bugzy-ai/bugzy 1.18.0 → 1.18.1

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