@bugzy-ai/bugzy 1.7.0 → 1.9.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.
- package/LICENSE +21 -21
- package/README.md +273 -273
- package/dist/cli/index.cjs +465 -15
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +464 -14
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +460 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +460 -12
- package/dist/index.js.map +1 -1
- package/dist/subagents/index.cjs +392 -6
- package/dist/subagents/index.cjs.map +1 -1
- package/dist/subagents/index.js +392 -6
- package/dist/subagents/index.js.map +1 -1
- package/dist/subagents/metadata.cjs +27 -0
- package/dist/subagents/metadata.cjs.map +1 -1
- package/dist/subagents/metadata.js +27 -0
- package/dist/subagents/metadata.js.map +1 -1
- package/dist/tasks/index.cjs +30 -1
- package/dist/tasks/index.cjs.map +1 -1
- package/dist/tasks/index.js +30 -1
- package/dist/tasks/index.js.map +1 -1
- package/package.json +95 -95
- package/templates/init/.bugzy/runtime/knowledge-base.md +61 -61
- package/templates/init/.bugzy/runtime/knowledge-maintenance-guide.md +97 -97
- package/templates/init/.bugzy/runtime/project-context.md +35 -35
- package/templates/init/.bugzy/runtime/subagent-memory-guide.md +87 -87
- package/templates/init/.bugzy/runtime/templates/test-plan-template.md +50 -50
- package/templates/init/.bugzy/runtime/templates/test-result-schema.md +498 -498
- package/templates/init/.bugzy/runtime/test-execution-strategy.md +535 -535
- package/templates/init/.bugzy/runtime/testing-best-practices.md +724 -632
- package/templates/init/.env.testdata +18 -18
- package/templates/init/.gitignore-template +24 -24
- package/templates/init/AGENTS.md +155 -155
- package/templates/init/CLAUDE.md +157 -157
- package/templates/init/test-runs/README.md +45 -45
- package/templates/playwright/BasePage.template.ts +190 -190
- package/templates/playwright/auth.setup.template.ts +89 -89
- package/templates/playwright/dataGenerators.helper.template.ts +148 -148
- package/templates/playwright/dateUtils.helper.template.ts +96 -96
- package/templates/playwright/pages.fixture.template.ts +50 -50
- package/templates/playwright/playwright.config.template.ts +97 -97
- package/templates/playwright/reporters/bugzy-reporter.ts +454 -454
- package/dist/templates/init/.bugzy/runtime/knowledge-base.md +0 -61
- package/dist/templates/init/.bugzy/runtime/knowledge-maintenance-guide.md +0 -97
- package/dist/templates/init/.bugzy/runtime/project-context.md +0 -35
- package/dist/templates/init/.bugzy/runtime/subagent-memory-guide.md +0 -87
- package/dist/templates/init/.bugzy/runtime/templates/test-plan-template.md +0 -50
- package/dist/templates/init/.bugzy/runtime/templates/test-result-schema.md +0 -498
- package/dist/templates/init/.bugzy/runtime/test-execution-strategy.md +0 -535
- package/dist/templates/init/.bugzy/runtime/testing-best-practices.md +0 -632
- 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
|
+
});
|