@hasna/testers 0.0.2 → 0.0.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.
- package/README.md +73 -2
- package/dist/cli/index.js +1845 -429
- package/dist/db/auth-presets.d.ts +20 -0
- package/dist/db/auth-presets.d.ts.map +1 -0
- package/dist/db/database.d.ts.map +1 -1
- package/dist/db/screenshots.d.ts +3 -0
- package/dist/db/screenshots.d.ts.map +1 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1815 -358
- package/dist/lib/ai-client.d.ts +6 -0
- package/dist/lib/ai-client.d.ts.map +1 -1
- package/dist/lib/costs.d.ts +36 -0
- package/dist/lib/costs.d.ts.map +1 -0
- package/dist/lib/diff.d.ts +25 -0
- package/dist/lib/diff.d.ts.map +1 -0
- package/dist/lib/init.d.ts +28 -0
- package/dist/lib/init.d.ts.map +1 -0
- package/dist/lib/report.d.ts +4 -0
- package/dist/lib/report.d.ts.map +1 -0
- package/dist/lib/runner.d.ts +12 -0
- package/dist/lib/runner.d.ts.map +1 -1
- package/dist/lib/screenshotter.d.ts +27 -25
- package/dist/lib/screenshotter.d.ts.map +1 -1
- package/dist/lib/smoke.d.ts +25 -0
- package/dist/lib/smoke.d.ts.map +1 -0
- package/dist/lib/templates.d.ts +5 -0
- package/dist/lib/templates.d.ts.map +1 -0
- package/dist/lib/watch.d.ts +9 -0
- package/dist/lib/watch.d.ts.map +1 -0
- package/dist/lib/webhooks.d.ts +41 -0
- package/dist/lib/webhooks.d.ts.map +1 -0
- package/dist/mcp/index.js +221 -31
- package/dist/server/index.js +138 -18
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -87,17 +87,88 @@ testers run <url> [description] # Run tests
|
|
|
87
87
|
--project <name> # Filter by project
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
-
### Results
|
|
90
|
+
### Results & Analysis
|
|
91
91
|
|
|
92
92
|
```bash
|
|
93
93
|
testers runs # List past runs
|
|
94
94
|
testers results <run-id> # Show run results
|
|
95
95
|
testers screenshots <id> # List screenshots
|
|
96
|
+
testers replay <run-id> # Re-run all scenarios from a run
|
|
97
|
+
testers retry <run-id> # Re-run only failed scenarios
|
|
98
|
+
testers diff <run1> <run2> # Compare two runs (regressions/fixes)
|
|
99
|
+
testers report <run-id> # Generate HTML report with screenshots
|
|
100
|
+
testers costs # Show cost tracking & budget status
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Projects
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
testers project create <name> # Create a project
|
|
107
|
+
testers project list # List projects
|
|
108
|
+
testers project show <id> # Show project details
|
|
109
|
+
testers project use <name> # Set active project
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### Schedules (Recurring Tests)
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
testers schedule create <name> # Create recurring schedule
|
|
116
|
+
--cron "0 2 * * *" # Cron expression (required)
|
|
117
|
+
--url http://localhost:3000 # Target URL (required)
|
|
118
|
+
--tag <tag> # Filter scenarios
|
|
119
|
+
--parallel <n> # Concurrent agents
|
|
120
|
+
testers schedule list # List all schedules
|
|
121
|
+
testers schedule enable <id> # Enable a schedule
|
|
122
|
+
testers schedule disable <id> # Disable a schedule
|
|
123
|
+
testers schedule run <id> # Manually trigger
|
|
124
|
+
testers daemon # Start scheduler daemon
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Smoke Testing
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
testers smoke <url> # Zero-config autonomous exploration
|
|
131
|
+
--model <preset> # AI model
|
|
132
|
+
--headed # Watch live
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### Templates & Auth
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
testers add --template auth # Seed auth test scenarios
|
|
139
|
+
testers add --template crud # Seed CRUD test scenarios
|
|
140
|
+
testers add --template forms # Seed form validation scenarios
|
|
141
|
+
testers add --template nav # Seed navigation scenarios
|
|
142
|
+
testers add --template a11y # Seed accessibility scenarios
|
|
143
|
+
|
|
144
|
+
testers auth add <name> # Create auth preset
|
|
145
|
+
--email <email> --password <pwd>
|
|
146
|
+
testers auth list # List presets
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### Watch Mode
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
testers watch <url> # Re-run on file changes
|
|
153
|
+
--dir . # Directory to watch
|
|
154
|
+
--tag <tag> # Filter scenarios
|
|
155
|
+
--debounce <ms> # Debounce delay (default: 2000)
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### Webhooks
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
testers webhook add <url> # Add webhook for notifications
|
|
162
|
+
--events failed,completed # Events to listen for
|
|
163
|
+
testers webhook list # List webhooks
|
|
164
|
+
testers webhook test <id> # Send test payload
|
|
165
|
+
testers webhook delete <id> # Remove webhook
|
|
96
166
|
```
|
|
97
167
|
|
|
98
168
|
### Utilities
|
|
99
169
|
|
|
100
170
|
```bash
|
|
171
|
+
testers init # Setup wizard (detects framework)
|
|
101
172
|
testers config # Show config
|
|
102
173
|
testers status # Show auth & DB status
|
|
103
174
|
testers install-browser # Install Playwright chromium
|
|
@@ -157,7 +228,7 @@ Screenshots are saved to `~/.testers/screenshots/` organized by:
|
|
|
157
228
|
Install for Claude Code:
|
|
158
229
|
|
|
159
230
|
```bash
|
|
160
|
-
claude mcp add --transport stdio --scope user testers
|
|
231
|
+
claude mcp add --transport stdio --scope user testers -- testers-mcp
|
|
161
232
|
```
|
|
162
233
|
|
|
163
234
|
Available tools: `create_scenario`, `list_scenarios`, `run_scenarios`, `get_results`, `get_screenshots`, and more.
|