agentic-team-templates 0.8.3 → 0.9.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.
@@ -0,0 +1,218 @@
1
+ # Test Strategy
2
+
3
+ Guidelines for creating and maintaining effective test strategies.
4
+
5
+ ## Strategy Components
6
+
7
+ ### 1. Scope Definition
8
+
9
+ Clearly define what is and isn't being tested:
10
+
11
+ ```markdown
12
+ ## In Scope
13
+ - [Feature/Component]: [Coverage level]
14
+ - [Feature/Component]: [Coverage level]
15
+
16
+ ## Out of Scope
17
+ - [Item]: [Reason]
18
+ - [Item]: [Reason]
19
+
20
+ ## Assumptions
21
+ - [Assumption 1]
22
+ - [Assumption 2]
23
+
24
+ ## Constraints
25
+ - [Constraint 1]
26
+ - [Constraint 2]
27
+ ```
28
+
29
+ ### 2. Risk Assessment
30
+
31
+ Prioritize testing based on risk:
32
+
33
+ ```markdown
34
+ ## Risk Register
35
+
36
+ | Risk Area | Impact | Likelihood | Priority | Testing Approach |
37
+ |-----------|--------|------------|----------|------------------|
38
+ | Payment processing | Critical | Medium | P0 | Extensive automated + manual |
39
+ | User authentication | Critical | Low | P1 | Comprehensive automated |
40
+ | Dashboard reporting | Medium | Medium | P2 | Standard coverage |
41
+ | Admin settings | Low | Low | P3 | Basic smoke tests |
42
+ ```
43
+
44
+ **Risk Factors:**
45
+
46
+ | Factor | High | Medium | Low |
47
+ |--------|------|--------|-----|
48
+ | Business Impact | Revenue, compliance | User experience | Cosmetic |
49
+ | User Impact | Many users, critical flow | Some users, secondary flow | Few users, edge case |
50
+ | Technical Risk | New tech, complex logic | Moderate complexity | Simple, well-understood |
51
+ | Change Frequency | Frequently modified | Occasional changes | Stable |
52
+
53
+ ### 3. Test Levels
54
+
55
+ Define approach for each test level:
56
+
57
+ ```markdown
58
+ ## Test Level Matrix
59
+
60
+ | Level | Scope | Automation | Responsibility | When |
61
+ |-------|-------|------------|----------------|------|
62
+ | Unit | Functions, classes | 100% | Developers | Every commit |
63
+ | Integration | APIs, services | 90%+ | Dev + QA | Every PR |
64
+ | E2E | User workflows | 70%+ | QA | Daily + release |
65
+ | Performance | Load, stress | 100% | QA + DevOps | Weekly + release |
66
+ | Security | Vulnerabilities | 100% | Security + QA | Daily + release |
67
+ | Exploratory | Risk areas | 0% | QA | Per feature |
68
+ ```
69
+
70
+ ### 4. Environment Strategy
71
+
72
+ ```markdown
73
+ ## Environment Matrix
74
+
75
+ | Environment | Purpose | Data | Refresh | Access |
76
+ |-------------|---------|------|---------|--------|
77
+ | Local | Development | Mocked | On demand | Developers |
78
+ | Dev | Integration | Synthetic | Daily | Team |
79
+ | Staging | Pre-prod | Sanitized prod | Weekly | Team + stakeholders |
80
+ | Production | Smoke only | Live | N/A | Restricted |
81
+
82
+ ## Environment Parity Checklist
83
+ - [ ] Same OS/runtime versions
84
+ - [ ] Same database schema
85
+ - [ ] Same third-party service configs
86
+ - [ ] Same feature flags
87
+ - [ ] Same infrastructure topology
88
+ ```
89
+
90
+ ### 5. Entry/Exit Criteria
91
+
92
+ ```markdown
93
+ ## Entry Criteria (Ready for Testing)
94
+
95
+ - [ ] Code complete and merged to test branch
96
+ - [ ] Unit tests passing (80%+ coverage)
97
+ - [ ] Code review approved
98
+ - [ ] Build deployed to test environment
99
+ - [ ] Test data available
100
+ - [ ] Requirements/stories linked
101
+
102
+ ## Exit Criteria (Ready for Release)
103
+
104
+ ### Must Have
105
+ - [ ] All P0 test cases executed and passed
106
+ - [ ] All P1 test cases executed and passed
107
+ - [ ] No open P0 defects
108
+ - [ ] No open P1 defects (or approved exceptions)
109
+ - [ ] Regression suite > 95% pass rate
110
+ - [ ] Security scan: 0 critical, 0 high vulnerabilities
111
+ - [ ] Performance thresholds met
112
+
113
+ ### Should Have
114
+ - [ ] P2 defects < 5 open
115
+ - [ ] All new features have automation
116
+ - [ ] Documentation updated
117
+
118
+ ### Approval
119
+ - [ ] QA Lead sign-off
120
+ - [ ] Dev Lead sign-off
121
+ - [ ] Product Owner sign-off
122
+ ```
123
+
124
+ ## Test Type Definitions
125
+
126
+ ### Smoke Tests
127
+
128
+ **Purpose:** Verify basic functionality works after deployment
129
+
130
+ **Characteristics:**
131
+ - Fast (< 5 minutes)
132
+ - Critical path only
133
+ - Run on every deployment
134
+ - Block release if failing
135
+
136
+ **Example Coverage:**
137
+ - Application loads
138
+ - User can log in
139
+ - Core feature accessible
140
+ - Database connectivity
141
+
142
+ ### Regression Tests
143
+
144
+ **Purpose:** Ensure existing functionality still works after changes
145
+
146
+ **Characteristics:**
147
+ - Comprehensive coverage
148
+ - Run before every release
149
+ - Automated where possible
150
+ - Prioritized by risk
151
+
152
+ **Maintenance:**
153
+ - Review quarterly
154
+ - Remove obsolete tests
155
+ - Update for product changes
156
+ - Fix flaky tests immediately
157
+
158
+ ### Integration Tests
159
+
160
+ **Purpose:** Verify components work together correctly
161
+
162
+ **Characteristics:**
163
+ - Test API contracts
164
+ - Test database interactions
165
+ - Test service communication
166
+ - Mock external dependencies
167
+
168
+ ### End-to-End Tests
169
+
170
+ **Purpose:** Validate complete user workflows
171
+
172
+ **Characteristics:**
173
+ - Test realistic scenarios
174
+ - Include multiple systems
175
+ - Slower and more fragile
176
+ - Limited to critical paths
177
+
178
+ ### Performance Tests
179
+
180
+ **Purpose:** Validate system meets performance requirements
181
+
182
+ **Types:**
183
+ | Type | Purpose | When |
184
+ |------|---------|------|
185
+ | Load | Normal expected load | Every release |
186
+ | Stress | Beyond normal capacity | Quarterly |
187
+ | Spike | Sudden load increase | Before events |
188
+ | Soak | Extended duration | Monthly |
189
+
190
+ ### Security Tests
191
+
192
+ **Purpose:** Identify vulnerabilities before attackers do
193
+
194
+ **Types:**
195
+ - Static Analysis (SAST): Code scanning
196
+ - Dynamic Analysis (DAST): Runtime scanning
197
+ - Dependency Scanning: Third-party vulnerabilities
198
+ - Penetration Testing: Manual security assessment
199
+
200
+ ## Strategy Maintenance
201
+
202
+ ### Review Cadence
203
+
204
+ | Review | Frequency | Focus |
205
+ |--------|-----------|-------|
206
+ | Daily | Every day | Execution status, blockers |
207
+ | Sprint | Every sprint | Coverage, defect trends |
208
+ | Release | Every release | Quality gate, metrics |
209
+ | Quarterly | Every quarter | Strategy effectiveness |
210
+
211
+ ### Strategy Updates
212
+
213
+ Trigger strategy review when:
214
+ - Major product changes
215
+ - New technology adoption
216
+ - Significant defect trends
217
+ - Team structure changes
218
+ - Customer feedback patterns