synapse-hub 2.1.1 → 2.2.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/.agents/agents/orchestrator.md +7 -0
- package/.agents/rules/lessons-learned.md +1 -0
- package/.agents/skills/agent-orchestration-multi-agent-optimize/SKILL.md +1 -1
- package/.agents/skills/antigravity-test-sentinel/SKILL.md +1 -2
- package/.agents/skills/api-network-mocking-interception/SKILL.md +1 -1
- package/.agents/skills/api-spec-to-e2e-matrix/SKILL.md +11 -4
- package/.agents/skills/architecture-decision-records/SKILL.md +1 -1
- package/.agents/skills/auth-session-and-cookie-manager/SKILL.md +1 -1
- package/.agents/skills/backend-load-and-stress-patterns/SKILL.md +32 -11
- package/.agents/skills/bats-testing-patterns/SKILL.md +1 -1
- package/.agents/skills/clean-pom-crafter/SKILL.md +1 -4
- package/.agents/skills/code-refactoring-refactor-clean/SKILL.md +1 -1
- package/.agents/skills/db-state-verifier-and-seeder/SKILL.md +1 -1
- package/.agents/skills/e2e-testing-patterns/SKILL.md +1 -1
- package/.agents/skills/failure-autopsy-and-healing/SKILL.md +1 -3
- package/.agents/skills/file-and-report-validator/SKILL.md +1 -1
- package/.agents/skills/flaky-test-sentinel-and-quarantine/SKILL.md +1 -1
- package/.agents/skills/github-actions-templates/SKILL.md +1 -1
- package/.agents/skills/graphify-impact-analyzer/SKILL.md +1 -3
- package/.agents/skills/katalon-cli-runner/SKILL.md +1 -1
- package/.agents/skills/lam-script-generator/SKILL.md +1 -2
- package/.agents/skills/playwright-live-interaction/SKILL.md +1 -4
- package/.agents/skills/security-dast-sentinel/SKILL.md +1 -1
- package/.agents/skills/self-healing-locator/SKILL.md +1 -2
- package/.agents/skills/skillspector-security-guard/SKILL.md +115 -0
- package/.agents/skills/synthetic-test-data-generator/SKILL.md +1 -1
- package/.agents/skills/token-and-context-optimizer/SKILL.md +1 -1
- package/.agents/skills/visual-regression-sentinel/SKILL.md +1 -1
- package/.agents/skills/wcag-audit-patterns/SKILL.md +1 -1
- package/.agents/skills/web-vitals-and-performance-profiler/SKILL.md +1 -1
- package/AGENTS.md +36 -0
- package/README.md +140 -103
- package/package.json +1 -1
- package/skills_manifest.json +42 -29
- package/templates/PROJECT_AI_GUIDE_TEMPLATE.md +15 -1
- package/templates/ai_bridges/CLAUDE.md +31 -0
- package/templates/ai_bridges/copilot-instructions.md +25 -0
- package/templates/ai_bridges/cursor_synapse_qa.mdc +26 -0
- package/templates/ai_bridges/windsurfrules +25 -0
- package/templates/ci/github-actions-synapse.yml +28 -0
- package/templates/ci/gitlab-ci-synapse.yml +16 -0
- package/tools/TOOLS_RUNBOOK.md +203 -12
- package/tools/browser_helpers.js +2 -2
- package/tools/bump_version.py +8 -0
- package/tools/cli.py +74 -2
- package/tools/export_postman_collection.py +535 -218
- package/tools/generate_jmx_plan.py +672 -102
- package/tools/git_pre_commit_guard.py +21 -0
- package/tools/jtl_analyzer.py +474 -0
- package/tools/mcp_excel_server.ps1 +1 -1
- package/tools/mcp_server.py +1 -1
- package/tools/newman_analyzer.py +385 -0
- package/tools/setup_project.py +203 -18
- package/tools/skillspector.py +1141 -0
- package/tools/telemetry_correlator.py +351 -0
- package/tools/templates/jmeter-distributed/README.md +54 -0
- package/tools/templates/jmeter-distributed/docker-compose.yml +83 -0
- package/tools/update_sentinel.py +313 -0
package/skills_manifest.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"name": "Enterprise Agent Skills Hub",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.2.0",
|
|
5
5
|
"description": "Unified Catalog of 27 Specialized Skills for Autonomous AI Agents in Enterprise Software Quality Engineering, Performance, and Architecture.",
|
|
6
|
-
"totalSkills":
|
|
6
|
+
"totalSkills": 28,
|
|
7
7
|
"categories": {
|
|
8
8
|
"context_and_optimization": [
|
|
9
9
|
"token-and-context-optimizer",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"file-and-report-validator",
|
|
30
30
|
"db-state-verifier-and-seeder",
|
|
31
31
|
"security-dast-sentinel",
|
|
32
|
+
"skillspector-security-guard",
|
|
32
33
|
"flaky-test-sentinel-and-quarantine"
|
|
33
34
|
],
|
|
34
35
|
"architecture_and_analysis": [
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
"name": "Agent Orchestration Multi-Agent Optimize",
|
|
48
49
|
"category": "context_and_optimization",
|
|
49
50
|
"path": ".agents/skills/agent-orchestration-multi-agent-optimize/SKILL.md",
|
|
50
|
-
"summary": "
|
|
51
|
+
"summary": "Profile, benchmark, and orchestrate multi-agent test workloads and token throughput.",
|
|
51
52
|
"version": "2.0.0"
|
|
52
53
|
},
|
|
53
54
|
{
|
|
@@ -55,7 +56,7 @@
|
|
|
55
56
|
"name": "Antigravity Test Sentinel",
|
|
56
57
|
"category": "verification_and_resilience",
|
|
57
58
|
"path": ".agents/skills/antigravity-test-sentinel/SKILL.md",
|
|
58
|
-
"summary": "
|
|
59
|
+
"summary": "Enforce verification-first discipline: blocks task completion until tests and quality gates pass.",
|
|
59
60
|
"version": "2.0.0"
|
|
60
61
|
},
|
|
61
62
|
{
|
|
@@ -63,7 +64,7 @@
|
|
|
63
64
|
"name": "API Network Mocking & Interception",
|
|
64
65
|
"category": "verification_and_resilience",
|
|
65
66
|
"path": ".agents/skills/api-network-mocking-interception/SKILL.md",
|
|
66
|
-
"summary": "Intercept
|
|
67
|
+
"summary": "Intercept HTTP/GraphQL traffic, stub routes, and simulate chaos network failures.",
|
|
67
68
|
"version": "2.0.0"
|
|
68
69
|
},
|
|
69
70
|
{
|
|
@@ -71,7 +72,7 @@
|
|
|
71
72
|
"name": "API Spec to E2E Matrix",
|
|
72
73
|
"category": "architecture_and_analysis",
|
|
73
74
|
"path": ".agents/skills/api-spec-to-e2e-matrix/SKILL.md",
|
|
74
|
-
"summary": "
|
|
75
|
+
"summary": "Generate automated positive, boundary, and negative test matrices from OpenAPI specifications.",
|
|
75
76
|
"version": "2.0.0"
|
|
76
77
|
},
|
|
77
78
|
{
|
|
@@ -79,7 +80,7 @@
|
|
|
79
80
|
"name": "Architecture Decision Records",
|
|
80
81
|
"category": "architecture_and_analysis",
|
|
81
82
|
"path": ".agents/skills/architecture-decision-records/SKILL.md",
|
|
82
|
-
"summary": "
|
|
83
|
+
"summary": "Record, structure, and maintain technical Architecture Decision Records (ADRs).",
|
|
83
84
|
"version": "2.0.0"
|
|
84
85
|
},
|
|
85
86
|
{
|
|
@@ -87,7 +88,7 @@
|
|
|
87
88
|
"name": "Auth Session and Cookie Manager",
|
|
88
89
|
"category": "test_automation_and_execution",
|
|
89
90
|
"path": ".agents/skills/auth-session-and-cookie-manager/SKILL.md",
|
|
90
|
-
"summary": "Manage browser authentication sessions, JWT tokens, and
|
|
91
|
+
"summary": "Manage browser authentication sessions, storageState, JWT tokens, and multi-role state.",
|
|
91
92
|
"version": "2.0.0"
|
|
92
93
|
},
|
|
93
94
|
{
|
|
@@ -96,14 +97,15 @@
|
|
|
96
97
|
"description": "Enterprise backend load, stress, and endurance test orchestration using k6 and Locust. Directs AI agents in modeling concurrent Virtual Users (VUs), establishing SLA threshold assertions (P95/P99 latency, throughput/RPS, error rate < 0.1%), executing stress break-point tests, and soak/endurance validation.",
|
|
97
98
|
"category": "test_automation_and_execution",
|
|
98
99
|
"path": ".agents/skills/backend-load-and-stress-patterns/SKILL.md",
|
|
99
|
-
"version": "1.0.0"
|
|
100
|
+
"version": "1.0.0",
|
|
101
|
+
"summary": "Orchestrate k6 and Locust backend load, stress, and SLA endurance test suites."
|
|
100
102
|
},
|
|
101
103
|
{
|
|
102
104
|
"id": "bats-testing-patterns",
|
|
103
105
|
"name": "Bats Testing Patterns",
|
|
104
106
|
"category": "test_automation_and_execution",
|
|
105
107
|
"path": ".agents/skills/bats-testing-patterns/SKILL.md",
|
|
106
|
-
"summary": "
|
|
108
|
+
"summary": "Test bash/sh scripts, CLI tools, and CI/CD pipelines with Bats.",
|
|
107
109
|
"version": "2.0.0"
|
|
108
110
|
},
|
|
109
111
|
{
|
|
@@ -111,7 +113,7 @@
|
|
|
111
113
|
"name": "Clean POM Crafter",
|
|
112
114
|
"category": "test_automation_and_execution",
|
|
113
115
|
"path": ".agents/skills/clean-pom-crafter/SKILL.md",
|
|
114
|
-
"summary": "
|
|
116
|
+
"summary": "Build and refactor Clean POM Page Classes adhering to Flat Architecture standards.",
|
|
115
117
|
"version": "2.0.0"
|
|
116
118
|
},
|
|
117
119
|
{
|
|
@@ -119,7 +121,7 @@
|
|
|
119
121
|
"name": "Code Refactoring Refactor Clean",
|
|
120
122
|
"category": "architecture_and_analysis",
|
|
121
123
|
"path": ".agents/skills/code-refactoring-refactor-clean/SKILL.md",
|
|
122
|
-
"summary": "
|
|
124
|
+
"summary": "Eliminate technical debt and refactor code using SOLID and Clean Code patterns.",
|
|
123
125
|
"version": "2.0.0"
|
|
124
126
|
},
|
|
125
127
|
{
|
|
@@ -127,7 +129,7 @@
|
|
|
127
129
|
"name": "Database State Verifier and Seeder",
|
|
128
130
|
"category": "verification_and_resilience",
|
|
129
131
|
"path": ".agents/skills/db-state-verifier-and-seeder/SKILL.md",
|
|
130
|
-
"summary": "
|
|
132
|
+
"summary": "Seed isolated test fixtures and assert database mutations across SQL and NoSQL.",
|
|
131
133
|
"version": "2.0.0"
|
|
132
134
|
},
|
|
133
135
|
{
|
|
@@ -135,7 +137,7 @@
|
|
|
135
137
|
"name": "E2E Testing Patterns",
|
|
136
138
|
"category": "test_automation_and_execution",
|
|
137
139
|
"path": ".agents/skills/e2e-testing-patterns/SKILL.md",
|
|
138
|
-
"summary": "
|
|
140
|
+
"summary": "Design robust multi-browser E2E test architectures, parallel sharding, and retry governance.",
|
|
139
141
|
"version": "2.0.0"
|
|
140
142
|
},
|
|
141
143
|
{
|
|
@@ -143,7 +145,7 @@
|
|
|
143
145
|
"name": "Failure Autopsy and Healing",
|
|
144
146
|
"category": "verification_and_resilience",
|
|
145
147
|
"path": ".agents/skills/failure-autopsy-and-healing/SKILL.md",
|
|
146
|
-
"summary": "
|
|
148
|
+
"summary": "Triage test failures from JUnit XML/screenshots and heal broken Page Class locators.",
|
|
147
149
|
"version": "2.0.0"
|
|
148
150
|
},
|
|
149
151
|
{
|
|
@@ -151,7 +153,7 @@
|
|
|
151
153
|
"name": "File and Report Validator",
|
|
152
154
|
"category": "verification_and_resilience",
|
|
153
155
|
"path": ".agents/skills/file-and-report-validator/SKILL.md",
|
|
154
|
-
"summary": "Validate
|
|
156
|
+
"summary": "Validate downloaded and uploaded files (Excel, CSV, PDF) schemas and tabular integrity.",
|
|
155
157
|
"version": "2.0.0"
|
|
156
158
|
},
|
|
157
159
|
{
|
|
@@ -160,14 +162,15 @@
|
|
|
160
162
|
"description": "Enterprise flaky test detection, scoring, and automated quarantine governance. Detects non-deterministic test behavior via multi-run repetition (e.g., 5 iterations), computes flakiness index, isolates unstable tests from blocking CI/CD merges via quarantine tagging (@quarantine / @flaky), and tracks MTBF until remediation.",
|
|
161
163
|
"category": "verification_and_resilience",
|
|
162
164
|
"path": ".agents/skills/flaky-test-sentinel-and-quarantine/SKILL.md",
|
|
163
|
-
"version": "1.0.0"
|
|
165
|
+
"version": "1.0.0",
|
|
166
|
+
"summary": "Detect non-deterministic flaky tests, calculate flakiness scores, and manage quarantine."
|
|
164
167
|
},
|
|
165
168
|
{
|
|
166
169
|
"id": "github-actions-templates",
|
|
167
170
|
"name": "GitHub Actions Templates",
|
|
168
171
|
"category": "architecture_and_analysis",
|
|
169
172
|
"path": ".agents/skills/github-actions-templates/SKILL.md",
|
|
170
|
-
"summary": "
|
|
173
|
+
"summary": "Create production-ready GitHub Actions workflows for automated test suites and CI/CD.",
|
|
171
174
|
"version": "2.0.0"
|
|
172
175
|
},
|
|
173
176
|
{
|
|
@@ -175,7 +178,7 @@
|
|
|
175
178
|
"name": "Graphify Impact Analyzer",
|
|
176
179
|
"category": "architecture_and_analysis",
|
|
177
180
|
"path": ".agents/skills/graphify-impact-analyzer/SKILL.md",
|
|
178
|
-
"summary": "
|
|
181
|
+
"summary": "Analyze code change blast radius and scope impacted test cases via AST.",
|
|
179
182
|
"version": "2.0.0"
|
|
180
183
|
},
|
|
181
184
|
{
|
|
@@ -183,7 +186,7 @@
|
|
|
183
186
|
"name": "Katalon CLI Runner",
|
|
184
187
|
"category": "test_automation_and_execution",
|
|
185
188
|
"path": ".agents/skills/katalon-cli-runner/SKILL.md",
|
|
186
|
-
"summary": "
|
|
189
|
+
"summary": "Execute headless Katalon and Gradle test runners with automatic driver cleanup.",
|
|
187
190
|
"version": "2.0.0"
|
|
188
191
|
},
|
|
189
192
|
{
|
|
@@ -191,7 +194,7 @@
|
|
|
191
194
|
"name": "LAM Script Generator",
|
|
192
195
|
"category": "test_automation_and_execution",
|
|
193
196
|
"path": ".agents/skills/lam-script-generator/SKILL.md",
|
|
194
|
-
"summary": "
|
|
197
|
+
"summary": "Transform user stories and acceptance criteria into Clean POM automation scripts.",
|
|
195
198
|
"version": "2.0.0"
|
|
196
199
|
},
|
|
197
200
|
{
|
|
@@ -199,7 +202,7 @@
|
|
|
199
202
|
"name": "Playwright Live Interaction",
|
|
200
203
|
"category": "test_automation_and_execution",
|
|
201
204
|
"path": ".agents/skills/playwright-live-interaction/SKILL.md",
|
|
202
|
-
"summary": "
|
|
205
|
+
"summary": "Probe live web DOM/AOM and verify selectors under 200ms using headless Playwright.",
|
|
203
206
|
"version": "2.0.0"
|
|
204
207
|
},
|
|
205
208
|
{
|
|
@@ -208,14 +211,24 @@
|
|
|
208
211
|
"description": "Dynamic Application Security Testing (DAST) and OWASP Top 10 automated verification for web apps and APIs. Audits security response headers (CSP, HSTS, X-Frame-Options), detects sensitive data leaks (PII, tokens, internal stacktraces), asserts BOLA/IDOR authorization boundaries via role token swapping, and validates CORS configurations.",
|
|
209
212
|
"category": "verification_and_resilience",
|
|
210
213
|
"path": ".agents/skills/security-dast-sentinel/SKILL.md",
|
|
211
|
-
"version": "1.0.0"
|
|
214
|
+
"version": "1.0.0",
|
|
215
|
+
"summary": "Run dynamic security audits: OWASP Top 10, security headers, IDOR, and token leakage."
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"id": "skillspector-security-guard",
|
|
219
|
+
"name": "SkillSpector Security Guard",
|
|
220
|
+
"description": "Autonomous security scanner for AI Agent skills, prompt instructions, and MCP tool configs. Detects 71 vulnerability vectors across 17 categories (Prompt Injection, Data Exfiltration, Privilege Escalation, Agent Snooping, Tool Poisoning, Behavioral AST). Powered by NVIDIA SkillSpector heuristics with Prohibition Context Guard.",
|
|
221
|
+
"category": "verification_and_resilience",
|
|
222
|
+
"path": ".agents/skills/skillspector-security-guard/SKILL.md",
|
|
223
|
+
"version": "1.0.0",
|
|
224
|
+
"summary": "Audit and verify AI agent skills, prompts, and MCP configurations against 71 vulnerability vectors inspired by NVIDIA SkillSpector."
|
|
212
225
|
},
|
|
213
226
|
{
|
|
214
227
|
"id": "self-healing-locator",
|
|
215
228
|
"name": "Self Healing Locator",
|
|
216
229
|
"category": "verification_and_resilience",
|
|
217
230
|
"path": ".agents/skills/self-healing-locator/SKILL.md",
|
|
218
|
-
"summary": "
|
|
231
|
+
"summary": "Heal broken locators using semantic AOM diffing with Role, Label, and TestId hierarchy.",
|
|
219
232
|
"version": "2.0.0"
|
|
220
233
|
},
|
|
221
234
|
{
|
|
@@ -223,7 +236,7 @@
|
|
|
223
236
|
"name": "Synthetic Test Data Generator",
|
|
224
237
|
"category": "verification_and_resilience",
|
|
225
238
|
"path": ".agents/skills/synthetic-test-data-generator/SKILL.md",
|
|
226
|
-
"summary": "Generate
|
|
239
|
+
"summary": "Generate idempotent, boundary-value synthetic test data with unique runtime timestamps.",
|
|
227
240
|
"version": "2.0.0"
|
|
228
241
|
},
|
|
229
242
|
{
|
|
@@ -231,7 +244,7 @@
|
|
|
231
244
|
"name": "Token and Context Optimizer",
|
|
232
245
|
"category": "context_and_optimization",
|
|
233
246
|
"path": ".agents/skills/token-and-context-optimizer/SKILL.md",
|
|
234
|
-
"summary": "
|
|
247
|
+
"summary": "Optimize prompt context, distill verbose logs, and prevent context rot in Antigravity.",
|
|
235
248
|
"version": "2.0.0"
|
|
236
249
|
},
|
|
237
250
|
{
|
|
@@ -239,7 +252,7 @@
|
|
|
239
252
|
"name": "Visual Regression Sentinel",
|
|
240
253
|
"category": "verification_and_resilience",
|
|
241
254
|
"path": ".agents/skills/visual-regression-sentinel/SKILL.md",
|
|
242
|
-
"summary": "
|
|
255
|
+
"summary": "Run pixel and layout shift visual regression checks with anti-flake masking.",
|
|
243
256
|
"version": "2.0.0"
|
|
244
257
|
},
|
|
245
258
|
{
|
|
@@ -247,7 +260,7 @@
|
|
|
247
260
|
"name": "WCAG Audit Patterns",
|
|
248
261
|
"category": "architecture_and_analysis",
|
|
249
262
|
"path": ".agents/skills/wcag-audit-patterns/SKILL.md",
|
|
250
|
-
"summary": "
|
|
263
|
+
"summary": "Audit WCAG 2.2 accessibility (A/AA), keyboard navigation, and ARIA roles.",
|
|
251
264
|
"version": "2.0.0"
|
|
252
265
|
},
|
|
253
266
|
{
|
|
@@ -255,7 +268,7 @@
|
|
|
255
268
|
"name": "Web Vitals and Performance Profiler",
|
|
256
269
|
"category": "architecture_and_analysis",
|
|
257
270
|
"path": ".agents/skills/web-vitals-and-performance-profiler/SKILL.md",
|
|
258
|
-
"summary": "
|
|
271
|
+
"summary": "Measure Core Web Vitals (LCP, CLS, INP) and network waterfalls via CDP.",
|
|
259
272
|
"version": "2.0.0"
|
|
260
273
|
}
|
|
261
274
|
]
|
|
@@ -51,13 +51,27 @@
|
|
|
51
51
|
```bash
|
|
52
52
|
[e.g., npx playwright test tests/e2e/login.spec.ts]
|
|
53
53
|
```
|
|
54
|
-
- **Execute
|
|
54
|
+
- **Execute 8 Quality Gates Verification:**
|
|
55
55
|
```bash
|
|
56
|
+
npx synapse-hub verify
|
|
57
|
+
# or
|
|
56
58
|
python tools/verify_all.py
|
|
57
59
|
```
|
|
58
60
|
|
|
59
61
|
---
|
|
60
62
|
|
|
63
|
+
## 6. Universal Multi-IDE & Multi-AI Setup
|
|
64
|
+
This repository supports multi-agent and multi-IDE automation natively through Synapse-Hub bridges:
|
|
65
|
+
- **Google Antigravity:** Powered globally via Global Plugin (`~/.gemini/config/plugins/synapse-hub`).
|
|
66
|
+
- **Cursor:** Automated rules at `.cursor/rules/synapse-qa.mdc`.
|
|
67
|
+
- **Claude Code:** Project guide at `CLAUDE.md`.
|
|
68
|
+
- **GitHub Copilot:** Custom system instructions at `.github/copilot-instructions.md`.
|
|
69
|
+
- **Windsurf (Cascade):** Automation invariants at `.windsurfrules`.
|
|
70
|
+
|
|
71
|
+
All bridges enforce Clean POM, Truth Anchor, and 8 Quality Gates DoD automatically.
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
61
75
|
## 6. Git Push & SCM Workflow
|
|
62
76
|
- **Clean SCM by Architecture:** Because `agent-skills` is a separate external repository, this target project stays 100% clean of AI skills, rules, and prompts. No dual-remote or smart push script is needed.
|
|
63
77
|
- **Push Command:** Commit verified code and push directly to this project's remote branch:
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# CLAUDE.md — Synapse-Hub Guidelines for Claude Code
|
|
2
|
+
|
|
3
|
+
You are an expert QA Automation and Test Architect adhering to enterprise standards governed by Synapse-Hub.
|
|
4
|
+
|
|
5
|
+
## Quick Commands
|
|
6
|
+
- Verify 8 Quality Gates: `npx synapse-hub verify`
|
|
7
|
+
- Project Health Audit: `npx synapse-hub analyze`
|
|
8
|
+
- Update Synapse Hub: `npx synapse-hub update`
|
|
9
|
+
- Codebase Intelligence: Refer to `PROJECT_AI_GUIDE.md` and `repo_map.txt`
|
|
10
|
+
|
|
11
|
+
## Core QA Automation Invariants
|
|
12
|
+
1. **Clean Page Object Model (POM):**
|
|
13
|
+
- Test scripts (`tests/`, `Scripts/`) must contain ONLY business workflow calls on Page Classes.
|
|
14
|
+
- Strictly forbidden: Raw XPaths, CSS selectors, or `findTestObject` inside test scripts.
|
|
15
|
+
- All locators and DOM operations must be encapsulated in Page Classes extending `BasePage`.
|
|
16
|
+
|
|
17
|
+
2. **Truth Anchor (Zero Fake Passes):**
|
|
18
|
+
- Never write empty assertions or tautological tests (e.g. `assert True`, 0 asserts).
|
|
19
|
+
- If a test fails due to an AUT (Application Under Test) bug, report the defect honestly. Never soften assertions or skip validation steps to fake a pass.
|
|
20
|
+
|
|
21
|
+
3. **Dynamic & Idempotent Test Data:**
|
|
22
|
+
- Always randomize test entity codes with timestamps/prefixes (`AUTO_` + timestamp) to avoid DB unique constraint collisions during parallel runs.
|
|
23
|
+
- Every creation test case MUST be paired with automated Teardown / Cleanup.
|
|
24
|
+
|
|
25
|
+
4. **Synchronization & Smart Waits:**
|
|
26
|
+
- Static sleeps (`Thread.sleep`, `time.sleep`) are strictly prohibited.
|
|
27
|
+
- Use dynamic smart waits: element visibility, network idle (`networkidle`), or framework readiness.
|
|
28
|
+
|
|
29
|
+
5. **Definition of Done (DoD):**
|
|
30
|
+
- Before completing any testing or code refactoring task, run `npx synapse-hub verify`.
|
|
31
|
+
- All 8 Quality Gates must return `PASS`.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# GitHub Copilot Instructions — Synapse-Hub Enterprise QA
|
|
2
|
+
|
|
3
|
+
When assisting in this repository, you must adhere strictly to the enterprise testing standards governed by Synapse-Hub:
|
|
4
|
+
|
|
5
|
+
## 1. Clean Page Object Model (POM)
|
|
6
|
+
- Keep all test scripts (`tests/`, `Scripts/`) decoupled from UI implementation details.
|
|
7
|
+
- Never write raw XPaths, CSS selectors, or direct DOM queries in test scripts.
|
|
8
|
+
- Encapsulate all element locators and page actions within Page Classes extending `BasePage`.
|
|
9
|
+
|
|
10
|
+
## 2. Truth Anchor (Zero Fake Passes)
|
|
11
|
+
- Every test must contain robust, non-trivial assertions that verify actual system state or business outputs.
|
|
12
|
+
- Never write tests without assertions or catch-all exception swallowers that mask failures.
|
|
13
|
+
- If an application defect is uncovered, report it cleanly; do not modify expected values to force a pass.
|
|
14
|
+
|
|
15
|
+
## 3. Dynamic & Idempotent Test Data
|
|
16
|
+
- Generate unique identifiers dynamically (e.g. `AUTO_` + timestamp) for all entities created during tests.
|
|
17
|
+
- Always include automated cleanup/teardown logic to prevent test environment pollution.
|
|
18
|
+
|
|
19
|
+
## 4. Smart Synchronization
|
|
20
|
+
- Never suggest or write static sleep calls (`Thread.sleep`, `time.sleep`).
|
|
21
|
+
- Always use explicit/dynamic waits (visibility, DOM stability, network idle).
|
|
22
|
+
|
|
23
|
+
## 5. Verification Gate
|
|
24
|
+
- When tests or page objects are added or modified, verify adherence by running `npx synapse-hub verify`.
|
|
25
|
+
- Consult `PROJECT_AI_GUIDE.md` for project-specific setup and architecture patterns.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Synapse-Hub Enterprise QA Standards, Clean POM, Truth Anchor, and 8 Quality Gates DoD
|
|
3
|
+
globs: **/*
|
|
4
|
+
alwaysApply: true
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Synapse-Hub QA Standards for Cursor AI
|
|
8
|
+
|
|
9
|
+
You are an expert QA Automation Engineer adhering to enterprise testing discipline governed by Synapse-Hub.
|
|
10
|
+
|
|
11
|
+
## Mandatory Rules:
|
|
12
|
+
1. **Clean Page Object Model (POM):**
|
|
13
|
+
- Test scripts (e.g. `tests/`, `Scripts/`) must NEVER contain raw XPaths, CSS selectors, or `findTestObject`.
|
|
14
|
+
- All locators and DOM interactions must be encapsulated in Page Classes inheriting from `BasePage`.
|
|
15
|
+
2. **Truth Anchor (Zero Fake Passes):**
|
|
16
|
+
- Never write tautological tests (0 assertions or trivial assertions like `assert True`).
|
|
17
|
+
- If an application bug occurs, report it honestly. Never soften assertions to manufacture a fake pass.
|
|
18
|
+
3. **Dynamic & Idempotent Test Data:**
|
|
19
|
+
- Always use randomized unique identifiers (e.g. `AUTO_` + timestamp) to prevent DB collisions.
|
|
20
|
+
- Always implement automated teardown/cleanup for any created data.
|
|
21
|
+
4. **Synchronization & Smart Waits:**
|
|
22
|
+
- Static sleeps (`Thread.sleep`, `time.sleep`) are strictly forbidden. Use dynamic network idle or element visibility waits.
|
|
23
|
+
5. **Quality Gate Verification:**
|
|
24
|
+
- Run `npx synapse-hub verify` before declaring any task complete. All 8 Quality Gates must PASS.
|
|
25
|
+
6. **Project Intelligence:**
|
|
26
|
+
- Read `PROJECT_AI_GUIDE.md` for project-specific architecture, test credentials, and directory structure.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Windsurf Cascade Rules — Synapse-Hub Enterprise QA
|
|
2
|
+
|
|
3
|
+
You are an expert QA Automation Engineer adhering to Synapse-Hub enterprise testing standards.
|
|
4
|
+
|
|
5
|
+
## Mandatory Invariants:
|
|
6
|
+
1. **Clean POM Architecture:**
|
|
7
|
+
- Test scripts must only invoke methods from Page Classes.
|
|
8
|
+
- Strictly forbidden: raw CSS selectors, XPaths, or DOM queries in test scripts.
|
|
9
|
+
- Encapsulate all UI interaction in Page Classes extending `BasePage`.
|
|
10
|
+
|
|
11
|
+
2. **Truth Anchor (No Fake Passes):**
|
|
12
|
+
- No 0-assertion tests or catch-all try/catch blocks that swallow test failures.
|
|
13
|
+
- Report AUT bugs honestly; never alter test assertions to fake a pass.
|
|
14
|
+
|
|
15
|
+
3. **Dynamic Test Data & Cleanup:**
|
|
16
|
+
- Always generate unique test data using timestamps/prefixes (`AUTO_` + timestamp).
|
|
17
|
+
- Pair all data creation with automated teardown cleanup to prevent DB clutter.
|
|
18
|
+
|
|
19
|
+
4. **Dynamic Waits Only:**
|
|
20
|
+
- No static `sleep` calls (`Thread.sleep`, `time.sleep`).
|
|
21
|
+
- Use dynamic waits: element visibility, clickable states, network idle.
|
|
22
|
+
|
|
23
|
+
5. **Definition of Done:**
|
|
24
|
+
- Always run `npx synapse-hub verify` before completing testing tasks.
|
|
25
|
+
- Read `PROJECT_AI_GUIDE.md` for project architecture and conventions.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: Synapse QA Quality Gate
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ main, develop, master ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ main, develop, master ]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
quality-gate:
|
|
11
|
+
name: 8 Quality Gates DoD Verification
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- name: Checkout Project Source
|
|
15
|
+
uses: actions/checkout@v4
|
|
16
|
+
|
|
17
|
+
- name: Setup Node.js (NPX Runner)
|
|
18
|
+
uses: actions/setup-node@v4
|
|
19
|
+
with:
|
|
20
|
+
node-version: 20
|
|
21
|
+
|
|
22
|
+
- name: Setup Python Environment
|
|
23
|
+
uses: actions/setup-python@v5
|
|
24
|
+
with:
|
|
25
|
+
python-version: '3.12'
|
|
26
|
+
|
|
27
|
+
- name: Run Synapse-Hub Quality Gates
|
|
28
|
+
run: npx synapse-hub verify
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Synapse-Hub Enterprise QA Quality Gate Snippet for GitLab CI
|
|
2
|
+
# Include this job in your target project's .gitlab-ci.yml
|
|
3
|
+
|
|
4
|
+
stages:
|
|
5
|
+
- test
|
|
6
|
+
|
|
7
|
+
synapse-qa-gate:
|
|
8
|
+
stage: test
|
|
9
|
+
image: node:20-bookworm
|
|
10
|
+
before_script:
|
|
11
|
+
- apt-get update && apt-get install -y python3 python3-pip
|
|
12
|
+
script:
|
|
13
|
+
- npx synapse-hub verify
|
|
14
|
+
rules:
|
|
15
|
+
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
16
|
+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|