@radicaltools/cli 0.1.0 → 0.3.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/README.md +335 -25
- package/dist/hub-catalogue/concern/concern-api-evolution.radical +935 -0
- package/dist/hub-catalogue/concern/concern-architecture-style.radical +1112 -0
- package/dist/hub-catalogue/concern/concern-authentication.radical +685 -0
- package/dist/hub-catalogue/concern/concern-authorization.radical +1464 -0
- package/dist/hub-catalogue/concern/concern-availability.radical +804 -0
- package/dist/hub-catalogue/concern/concern-backend-stack.radical +1118 -0
- package/dist/hub-catalogue/concern/concern-backup-recovery.radical +1304 -0
- package/dist/hub-catalogue/concern/concern-capacity.radical +802 -0
- package/dist/hub-catalogue/concern/concern-communication-style.radical +1202 -0
- package/dist/hub-catalogue/concern/concern-data-consistency.radical +1081 -0
- package/dist/hub-catalogue/concern/concern-data-store.radical +960 -0
- package/dist/hub-catalogue/concern/concern-decomposition.radical +1143 -0
- package/dist/hub-catalogue/concern/concern-deployment.radical +952 -0
- package/dist/hub-catalogue/concern/concern-encryption.radical +1055 -0
- package/dist/hub-catalogue/concern/concern-frontend-stack.radical +1340 -0
- package/dist/hub-catalogue/concern/concern-infrastructure.radical +1151 -0
- package/dist/hub-catalogue/concern/concern-integration-resilience.radical +1079 -0
- package/dist/hub-catalogue/concern/concern-messaging.radical +940 -0
- package/dist/hub-catalogue/concern/concern-module-boundaries.radical +864 -0
- package/dist/hub-catalogue/concern/concern-observability.radical +1048 -0
- package/dist/hub-catalogue/concern/concern-personal-data.radical +1434 -0
- package/dist/hub-catalogue/concern/concern-rate-limiting.radical +1153 -0
- package/dist/hub-catalogue/concern/concern-secrets.radical +1026 -0
- package/dist/hub-catalogue/concern/concern-supply-chain.radical +1312 -0
- package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +1306 -0
- package/dist/hub-catalogue/concern/concern-test-strategy.radical +1193 -0
- package/dist/index.js +9643 -1332
- package/package.json +6 -3
|
@@ -0,0 +1,1193 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hub": {
|
|
3
|
+
"id": "concern-test-strategy",
|
|
4
|
+
"category": "concern",
|
|
5
|
+
"name": "Test strategy",
|
|
6
|
+
"description": "Which tests the element has at which level, which gates a change must pass, where end-to-end tests run, where test data comes from, and what happens to a flaky test.",
|
|
7
|
+
"tags": [
|
|
8
|
+
"maintainability",
|
|
9
|
+
"testing",
|
|
10
|
+
"test pyramid",
|
|
11
|
+
"contract testing",
|
|
12
|
+
"mutation testing",
|
|
13
|
+
"flaky tests"
|
|
14
|
+
],
|
|
15
|
+
"requiredMetamodel": "c4-ddd-governance-builtin",
|
|
16
|
+
"concern": {
|
|
17
|
+
"id": "test-strategy",
|
|
18
|
+
"trigger": "LIST NODES WHERE (type = \"container\" OR type = \"webapp\") AND external != true",
|
|
19
|
+
"why": "code lives in these elements, so how it is tested before a change is released has to be decided.",
|
|
20
|
+
"group": "maintainability"
|
|
21
|
+
},
|
|
22
|
+
"sources": [
|
|
23
|
+
{
|
|
24
|
+
"title": "Martin Fowler: TestPyramid",
|
|
25
|
+
"url": "https://martinfowler.com/bliki/TestPyramid.html"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"title": "Ham Vocke: The Practical Test Pyramid (martinfowler.com)",
|
|
29
|
+
"url": "https://martinfowler.com/articles/practical-test-pyramid.html"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"title": "Ian Robinson: Consumer-Driven Contracts (martinfowler.com)",
|
|
33
|
+
"url": "https://martinfowler.com/articles/consumerDrivenContracts.html"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"title": "Martin Fowler: Eradicating Non-Determinism in Tests",
|
|
37
|
+
"url": "https://martinfowler.com/articles/nonDeterminism.html"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"title": "Martin Fowler: Continuous Integration",
|
|
41
|
+
"url": "https://martinfowler.com/articles/continuousIntegration.html"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"title": "ISO/IEC 25010, Maintainability: testability",
|
|
45
|
+
"url": "https://iso25000.com/index.php/en/iso-25000-standards/iso-25010"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"title": "Stryker Mutator",
|
|
49
|
+
"url": "https://stryker-mutator.io/"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"templateParams": [
|
|
53
|
+
{
|
|
54
|
+
"key": "SHAPE",
|
|
55
|
+
"title": "Test shape",
|
|
56
|
+
"label": "Where does most of the testing happen?",
|
|
57
|
+
"hint": "The shape says which level carries the bulk of the tests: it decides how fast feedback is, how much a refactoring breaks, and what a green build proves.",
|
|
58
|
+
"defaultValue": "pyramid",
|
|
59
|
+
"options": [
|
|
60
|
+
{
|
|
61
|
+
"value": "pyramid",
|
|
62
|
+
"label": "a test pyramid, mostly unit tests",
|
|
63
|
+
"description": "Many fast unit tests, fewer integration tests, a handful of end-to-end tests. Pick it when the element holds real domain logic (calculations, rules, state machines) that can be tested in isolation."
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"value": "trophy",
|
|
67
|
+
"label": "a testing trophy, mostly integration tests",
|
|
68
|
+
"description": "Most tests run the element with its real database in a container and fake only what lies outside it; static analysis and a few unit tests below, a few end-to-end tests above. Pick it for web apps and services that mostly glue a framework, a database and other APIs together."
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"value": "contract",
|
|
72
|
+
"label": "contract-heavy, consumer-driven contracts",
|
|
73
|
+
"description": "Each service is tested alone, and the calls between services are covered by consumer-driven contract tests instead of end-to-end tests across them. Pick it when several services owned by different teams deploy independently."
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"key": "GATE",
|
|
79
|
+
"title": "Quality gate",
|
|
80
|
+
"label": "What must the tests prove before a merge?",
|
|
81
|
+
"hint": "Coverage shows which lines ran; mutation testing shows whether a test would notice a line being wrong. Mutation testing costs build time.",
|
|
82
|
+
"defaultValue": "coverage",
|
|
83
|
+
"options": [
|
|
84
|
+
{
|
|
85
|
+
"value": "coverage",
|
|
86
|
+
"label": "coverage of new code",
|
|
87
|
+
"description": "New and changed lines must be covered by tests to a set percentage. Pick it as the baseline for any codebase, or when build time is tight."
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"value": "mutation",
|
|
91
|
+
"label": "coverage and mutation score",
|
|
92
|
+
"description": "Coverage, plus a minimum share of mutants killed in changed code. Pick it when the element holds business rules where a wrong condition costs money or trust, and the build can afford a few extra minutes."
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"key": "DATA",
|
|
98
|
+
"title": "Test data",
|
|
99
|
+
"label": "Where does test data come from?",
|
|
100
|
+
"hint": "Data shared between tests makes them depend on order; production copies carry personal data.",
|
|
101
|
+
"defaultValue": "synthetic",
|
|
102
|
+
"options": [
|
|
103
|
+
{
|
|
104
|
+
"value": "synthetic",
|
|
105
|
+
"label": "built by each test",
|
|
106
|
+
"description": "Each test creates the data it needs with builders or factories, in a fresh or rolled-back database. Pick it by default: tests stay independent and can run in parallel."
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"value": "fixtures",
|
|
110
|
+
"label": "versioned seed datasets",
|
|
111
|
+
"description": "Reviewed seed datasets kept with the tests are loaded into a fresh database for each run. Pick it when the data needed is large or intricate (a product catalogue, tariffs) and the same for many tests."
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"value": "masked",
|
|
115
|
+
"label": "masked copies of production",
|
|
116
|
+
"description": "Production data, with personal data masked or replaced, is copied into test environments. Pick it only when realistic volume and distribution matter (performance, migrations, reports) and synthetic data cannot reproduce them."
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"key": "E2E",
|
|
122
|
+
"title": "End-to-end",
|
|
123
|
+
"label": "Where do the end-to-end tests run?",
|
|
124
|
+
"hint": "End-to-end tests are the slowest and most brittle; where they run decides what they can stop.",
|
|
125
|
+
"defaultValue": "pipeline",
|
|
126
|
+
"options": [
|
|
127
|
+
{
|
|
128
|
+
"value": "pipeline",
|
|
129
|
+
"label": "on each pull request, in an ephemeral environment",
|
|
130
|
+
"description": "Every pull request is deployed to a short-lived environment and the journeys run there before the merge. Pick it when environments can be created in minutes (containers, infrastructure as code)."
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"value": "staging",
|
|
134
|
+
"label": "after the merge, on staging",
|
|
135
|
+
"description": "Merged builds deploy to a shared staging environment and the journeys gate the promotion to production. Pick it when a full environment is too costly to create per pull request."
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"value": "production",
|
|
139
|
+
"label": "in production, as synthetic checks",
|
|
140
|
+
"description": "No end-to-end gate before release; the journeys run against production after each deploy and on a schedule, and a failure rolls back. Pick it when you deploy many times a day behind feature flags with fast, automated rollback."
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"key": "FLAKY",
|
|
146
|
+
"title": "Flaky tests",
|
|
147
|
+
"label": "What happens to a test that fails at random?",
|
|
148
|
+
"hint": "A test that fails and passes on the same code teaches everyone to rerun until green, and then real failures are rerun too.",
|
|
149
|
+
"defaultValue": "quarantine",
|
|
150
|
+
"options": [
|
|
151
|
+
{
|
|
152
|
+
"value": "quarantine",
|
|
153
|
+
"label": "quarantined, then fixed or deleted",
|
|
154
|
+
"description": "The flaky test is moved out of the gate within a day, given an owner, and fixed or deleted within a deadline. Pick it for larger suites and several teams, where blocking everyone on one test costs more than the lost check."
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"value": "zero",
|
|
158
|
+
"label": "a flaky test is a failure",
|
|
159
|
+
"description": "No automatic retries: a test that fails and then passes fails the build, and is fixed before anything else merges. Pick it for a small suite and one team, where flakes are rare and fixed at once."
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"key": "PIPELINE_MINUTES",
|
|
165
|
+
"label": "Within how many minutes must the pull-request test run finish?",
|
|
166
|
+
"defaultValue": "10",
|
|
167
|
+
"type": "number"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"key": "COVERAGE",
|
|
171
|
+
"label": "What coverage of new code is required (%)?",
|
|
172
|
+
"defaultValue": "80",
|
|
173
|
+
"type": "number"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"key": "MUTATION",
|
|
177
|
+
"label": "What mutation score is required on changed code (%)?",
|
|
178
|
+
"defaultValue": "70",
|
|
179
|
+
"type": "number"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"key": "JOURNEYS",
|
|
183
|
+
"label": "Which user journeys do the end-to-end tests cover?",
|
|
184
|
+
"defaultValue": "sign-in, search, checkout"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"key": "QUARANTINE_DAYS",
|
|
188
|
+
"label": "Within how many days must a quarantined test be fixed or deleted?",
|
|
189
|
+
"defaultValue": "7",
|
|
190
|
+
"type": "number"
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
"nodes": [
|
|
195
|
+
{
|
|
196
|
+
"id": "need",
|
|
197
|
+
"type": "need",
|
|
198
|
+
"label": "Changes are released with confidence",
|
|
199
|
+
"x": 0,
|
|
200
|
+
"y": 0,
|
|
201
|
+
"kind": "brief",
|
|
202
|
+
"source": "Hub concern pack: Test strategy",
|
|
203
|
+
"description": "The element changes often, and every change must be releasable without fear: the tests have to catch a broken rule, a broken integration and a broken journey before users do, give that answer quickly enough that people wait for it, and give the same answer every time they run on the same code. A green build must mean something."
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"id": "req-pr-suite",
|
|
207
|
+
"type": "requirement",
|
|
208
|
+
"label": "Fast tests on every change",
|
|
209
|
+
"x": 260,
|
|
210
|
+
"y": 0,
|
|
211
|
+
"ears_type": "event-driven",
|
|
212
|
+
"trigger": "a pull request is opened or updated",
|
|
213
|
+
"action": "run the unit and integration tests within {{PIPELINE_MINUTES}} minutes and block the merge on any failure",
|
|
214
|
+
"rationale": "Feedback that takes longer than about ten minutes is no longer waited for, and changes pile up untested (Fowler, Continuous Integration: keep the build fast)."
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"id": "req-coverage",
|
|
218
|
+
"type": "requirement",
|
|
219
|
+
"label": "New code is covered",
|
|
220
|
+
"x": 260,
|
|
221
|
+
"y": 130,
|
|
222
|
+
"ears_type": "ubiquitous",
|
|
223
|
+
"action": "cover at least {{COVERAGE}}% of new and changed lines, branches included, with automated tests, measured on each pull request",
|
|
224
|
+
"rationale": "A gate on new code keeps coverage from falling without demanding that old code be fixed first (SonarQube \"Clean as You Code\"; ISO 25010 testability)."
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"id": "req-mutation",
|
|
228
|
+
"type": "requirement",
|
|
229
|
+
"label": "Tests notice wrong code",
|
|
230
|
+
"x": 260,
|
|
231
|
+
"y": 260,
|
|
232
|
+
"ears_type": "ubiquitous",
|
|
233
|
+
"action": "kill at least {{MUTATION}}% of the mutants generated in the changed code of each pull request",
|
|
234
|
+
"rationale": "Coverage shows that a line ran, not that a test would fail if it were wrong; a surviving mutant is a change no test notices (Stryker, PIT; Building Evolutionary Architectures).",
|
|
235
|
+
"hubWhen": {
|
|
236
|
+
"GATE": [
|
|
237
|
+
"mutation"
|
|
238
|
+
]
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"id": "req-pyramid",
|
|
243
|
+
"type": "requirement",
|
|
244
|
+
"label": "Mostly fast unit tests",
|
|
245
|
+
"x": 260,
|
|
246
|
+
"y": 390,
|
|
247
|
+
"ears_type": "ubiquitous",
|
|
248
|
+
"action": "keep at least 70% of the automated tests as unit tests that touch no network, database or file system and run in under 100 ms each, and at most 10% as end-to-end tests",
|
|
249
|
+
"rationale": "Tests low in the pyramid are fast, precise about what broke and cheap to keep; high ones are slow and brittle, so few of them (Fowler, TestPyramid; Vocke, The Practical Test Pyramid).",
|
|
250
|
+
"hubWhen": {
|
|
251
|
+
"SHAPE": [
|
|
252
|
+
"pyramid"
|
|
253
|
+
]
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"id": "req-trophy",
|
|
258
|
+
"type": "requirement",
|
|
259
|
+
"label": "Integration tests use real services",
|
|
260
|
+
"x": 260,
|
|
261
|
+
"y": 520,
|
|
262
|
+
"ears_type": "ubiquitous",
|
|
263
|
+
"action": "test behaviour mostly through integration tests that run the element with its real database and broker in containers and fake only systems outside it, with integration tests at least 50% of the suite and 0 in-memory substitutes for the database",
|
|
264
|
+
"rationale": "For code that mostly glues a framework and a database together, the bugs live in the wiring; an in-memory substitute hides exactly those (Vocke, The Practical Test Pyramid: integration tests; Testcontainers).",
|
|
265
|
+
"hubWhen": {
|
|
266
|
+
"SHAPE": [
|
|
267
|
+
"trophy"
|
|
268
|
+
]
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"id": "req-contracts",
|
|
273
|
+
"type": "requirement",
|
|
274
|
+
"label": "Contracts verified before deploy",
|
|
275
|
+
"x": 260,
|
|
276
|
+
"y": 650,
|
|
277
|
+
"ears_type": "event-driven",
|
|
278
|
+
"trigger": "a consumer changes how it calls a provider, or a provider is about to be deployed",
|
|
279
|
+
"action": "verify every consumer's contract against the provider in the provider's build, and refuse to deploy a version that has not verified the contracts of the consumers in the target environment",
|
|
280
|
+
"rationale": "Contract tests find a breaking change between services in the provider's build, in minutes, without an environment with every service in it (Robinson, Consumer-Driven Contracts).",
|
|
281
|
+
"hubWhen": {
|
|
282
|
+
"SHAPE": [
|
|
283
|
+
"contract"
|
|
284
|
+
]
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"id": "req-own-data",
|
|
289
|
+
"type": "requirement",
|
|
290
|
+
"label": "Tests build their own data",
|
|
291
|
+
"x": 260,
|
|
292
|
+
"y": 780,
|
|
293
|
+
"ears_type": "ubiquitous",
|
|
294
|
+
"action": "create the data each test needs in the test itself with builders or factories, and leave nothing behind, so that the suite passes in random order and in parallel",
|
|
295
|
+
"rationale": "Tests sharing data depend on order and break each other, the most common cause of flaky suites (Fowler, Eradicating Non-Determinism in Tests: isolation).",
|
|
296
|
+
"hubWhen": {
|
|
297
|
+
"DATA": [
|
|
298
|
+
"synthetic"
|
|
299
|
+
]
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"id": "req-fixtures",
|
|
304
|
+
"type": "requirement",
|
|
305
|
+
"label": "Seed data is versioned",
|
|
306
|
+
"x": 260,
|
|
307
|
+
"y": 910,
|
|
308
|
+
"ears_type": "ubiquitous",
|
|
309
|
+
"action": "keep seed datasets in version control next to the tests, load them into a fresh database for each test run after the current migrations, and change them only through a reviewed pull request",
|
|
310
|
+
"rationale": "Shared data is safe when it is the same on every run and every change to it is visible; a database kept between runs drifts (Vocke, The Practical Test Pyramid).",
|
|
311
|
+
"hubWhen": {
|
|
312
|
+
"DATA": [
|
|
313
|
+
"fixtures"
|
|
314
|
+
]
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"id": "req-masking",
|
|
319
|
+
"type": "requirement",
|
|
320
|
+
"label": "No personal data in tests",
|
|
321
|
+
"x": 260,
|
|
322
|
+
"y": 1040,
|
|
323
|
+
"ears_type": "unwanted-behaviour",
|
|
324
|
+
"unwanted_condition": "a copy of production data is made for a test environment",
|
|
325
|
+
"action": "mask or replace every personal-data field before the copy leaves the production environment, so that 0 real names, e-mail addresses, phone numbers, addresses or payment details reach a test environment",
|
|
326
|
+
"rationale": "Test environments are less protected than production; personal data in them is a breach waiting to happen (GDPR Art. 25 and 32: data protection by design, security of processing).",
|
|
327
|
+
"hubWhen": {
|
|
328
|
+
"DATA": [
|
|
329
|
+
"masked"
|
|
330
|
+
]
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"id": "req-e2e-pr",
|
|
335
|
+
"type": "requirement",
|
|
336
|
+
"label": "Journeys tested before merge",
|
|
337
|
+
"x": 260,
|
|
338
|
+
"y": 1170,
|
|
339
|
+
"ears_type": "event-driven",
|
|
340
|
+
"trigger": "a pull request is opened or updated",
|
|
341
|
+
"action": "deploy it to an ephemeral environment, run the end-to-end tests of {{JOURNEYS}} there, block the merge on a failure, and remove the environment when the pull request closes",
|
|
342
|
+
"rationale": "A broken journey is cheapest to fix before the merge; an environment per pull request keeps changes from waiting for a shared one (Vocke, The Practical Test Pyramid: end-to-end tests).",
|
|
343
|
+
"hubWhen": {
|
|
344
|
+
"E2E": [
|
|
345
|
+
"pipeline"
|
|
346
|
+
]
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"id": "req-e2e-staging",
|
|
351
|
+
"type": "requirement",
|
|
352
|
+
"label": "Journeys gate promotion",
|
|
353
|
+
"x": 260,
|
|
354
|
+
"y": 1300,
|
|
355
|
+
"ears_type": "event-driven",
|
|
356
|
+
"trigger": "a build is merged to the main branch",
|
|
357
|
+
"action": "deploy it to staging, run the end-to-end tests of {{JOURNEYS}} there, and promote it to production only when all pass",
|
|
358
|
+
"rationale": "One shared environment is cheaper than one per change; the gate keeps a broken journey out of production (Humble, Farley: Continuous Delivery, the deployment pipeline).",
|
|
359
|
+
"hubWhen": {
|
|
360
|
+
"E2E": [
|
|
361
|
+
"staging"
|
|
362
|
+
]
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"id": "req-e2e-prod",
|
|
367
|
+
"type": "requirement",
|
|
368
|
+
"label": "Journeys checked in production",
|
|
369
|
+
"x": 260,
|
|
370
|
+
"y": 1430,
|
|
371
|
+
"ears_type": "event-driven",
|
|
372
|
+
"trigger": "a release reaches production",
|
|
373
|
+
"action": "run synthetic checks of {{JOURNEYS}} against it within 5 minutes and every 5 minutes after, and roll the release back automatically when a check fails twice in a row",
|
|
374
|
+
"rationale": "With many deploys a day, production is the only environment where every journey can be proved; fast rollback bounds the harm of what slipped through (Sridharan, Testing in production; Google SRE, release engineering).",
|
|
375
|
+
"hubWhen": {
|
|
376
|
+
"E2E": [
|
|
377
|
+
"production"
|
|
378
|
+
]
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"id": "req-quarantine",
|
|
383
|
+
"type": "requirement",
|
|
384
|
+
"label": "Flaky tests quarantined",
|
|
385
|
+
"x": 260,
|
|
386
|
+
"y": 1560,
|
|
387
|
+
"ears_type": "unwanted-behaviour",
|
|
388
|
+
"unwanted_condition": "a test fails and then passes on the same commit",
|
|
389
|
+
"action": "move it to quarantine within 1 working day, where it runs but no longer blocks merges, assign it an owner, and fix or delete it within {{QUARANTINE_DAYS}} days",
|
|
390
|
+
"rationale": "A flaky test left in the gate teaches everyone to rerun until green; one left in quarantine forever is a deleted test nobody decided to delete (Fowler, Eradicating Non-Determinism in Tests: quarantine).",
|
|
391
|
+
"hubWhen": {
|
|
392
|
+
"FLAKY": [
|
|
393
|
+
"quarantine"
|
|
394
|
+
]
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"id": "req-no-retry",
|
|
399
|
+
"type": "requirement",
|
|
400
|
+
"label": "Flaky tests fail the build",
|
|
401
|
+
"x": 260,
|
|
402
|
+
"y": 1690,
|
|
403
|
+
"ears_type": "unwanted-behaviour",
|
|
404
|
+
"unwanted_condition": "a test fails and then passes on the same commit",
|
|
405
|
+
"action": "fail the build, naming the test as flaky, and merge nothing else to the main branch until it is fixed or deleted",
|
|
406
|
+
"rationale": "A small suite stays trustworthy only if every flake is treated as a defect at once (Fowler, Eradicating Non-Determinism in Tests).",
|
|
407
|
+
"hubWhen": {
|
|
408
|
+
"FLAKY": [
|
|
409
|
+
"zero"
|
|
410
|
+
]
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"id": "sc-pr-suite",
|
|
415
|
+
"type": "scenario",
|
|
416
|
+
"label": "Change is tested in time",
|
|
417
|
+
"x": 520,
|
|
418
|
+
"y": 0,
|
|
419
|
+
"given": "a pull request with a failing test",
|
|
420
|
+
"when": "it is pushed",
|
|
421
|
+
"then": "the test run reports the failure within {{PIPELINE_MINUTES}} minutes and the pull request cannot be merged"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"id": "sc-coverage",
|
|
425
|
+
"type": "scenario",
|
|
426
|
+
"label": "Uncovered code refused",
|
|
427
|
+
"x": 520,
|
|
428
|
+
"y": 130,
|
|
429
|
+
"given": "a pull request adding code",
|
|
430
|
+
"when": "its tests cover less than {{COVERAGE}}% of the new lines",
|
|
431
|
+
"then": "the quality gate fails and the pull request cannot be merged"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"id": "sc-mutation",
|
|
435
|
+
"type": "scenario",
|
|
436
|
+
"label": "Weak tests refused",
|
|
437
|
+
"x": 520,
|
|
438
|
+
"y": 260,
|
|
439
|
+
"given": "a pull request whose tests run the new code but assert nothing about a condition",
|
|
440
|
+
"when": "mutation testing flips that condition",
|
|
441
|
+
"then": "the mutant survives, the score falls below {{MUTATION}}% and the merge is blocked",
|
|
442
|
+
"hubWhen": {
|
|
443
|
+
"GATE": [
|
|
444
|
+
"mutation"
|
|
445
|
+
]
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"id": "sc-pyramid",
|
|
450
|
+
"type": "scenario",
|
|
451
|
+
"label": "Unit test stays isolated",
|
|
452
|
+
"x": 520,
|
|
453
|
+
"y": 390,
|
|
454
|
+
"given": "the unit test suite with network access disabled",
|
|
455
|
+
"when": "it runs",
|
|
456
|
+
"then": "every test passes in under 100 ms and unit tests are at least 70% of all tests",
|
|
457
|
+
"hubWhen": {
|
|
458
|
+
"SHAPE": [
|
|
459
|
+
"pyramid"
|
|
460
|
+
]
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"id": "sc-trophy",
|
|
465
|
+
"type": "scenario",
|
|
466
|
+
"label": "Real database in tests",
|
|
467
|
+
"x": 520,
|
|
468
|
+
"y": 520,
|
|
469
|
+
"given": "the integration test suite",
|
|
470
|
+
"when": "it runs",
|
|
471
|
+
"then": "it starts the same database engine and version as production in a container, and no test uses an in-memory substitute",
|
|
472
|
+
"hubWhen": {
|
|
473
|
+
"SHAPE": [
|
|
474
|
+
"trophy"
|
|
475
|
+
]
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"id": "sc-contracts",
|
|
480
|
+
"type": "scenario",
|
|
481
|
+
"label": "Breaking change refused",
|
|
482
|
+
"x": 520,
|
|
483
|
+
"y": 650,
|
|
484
|
+
"given": "a consumer whose contract expects a field",
|
|
485
|
+
"when": "the provider removes the field and tries to deploy",
|
|
486
|
+
"then": "contract verification fails and the deployment is refused",
|
|
487
|
+
"hubWhen": {
|
|
488
|
+
"SHAPE": [
|
|
489
|
+
"contract"
|
|
490
|
+
]
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"id": "sc-own-data",
|
|
495
|
+
"type": "scenario",
|
|
496
|
+
"label": "Order does not matter",
|
|
497
|
+
"x": 520,
|
|
498
|
+
"y": 780,
|
|
499
|
+
"given": "the test suite",
|
|
500
|
+
"when": "it runs three times in random order with parallel workers",
|
|
501
|
+
"then": "all three runs pass",
|
|
502
|
+
"hubWhen": {
|
|
503
|
+
"DATA": [
|
|
504
|
+
"synthetic"
|
|
505
|
+
]
|
|
506
|
+
}
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"id": "sc-fixtures",
|
|
510
|
+
"type": "scenario",
|
|
511
|
+
"label": "Seed loads on fresh database",
|
|
512
|
+
"x": 520,
|
|
513
|
+
"y": 910,
|
|
514
|
+
"given": "the seed datasets and the current migrations",
|
|
515
|
+
"when": "a test run starts",
|
|
516
|
+
"then": "a fresh database is migrated, the seed loads without error, and tests that change it run in a transaction rolled back afterwards",
|
|
517
|
+
"hubWhen": {
|
|
518
|
+
"DATA": [
|
|
519
|
+
"fixtures"
|
|
520
|
+
]
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"id": "sc-masking",
|
|
525
|
+
"type": "scenario",
|
|
526
|
+
"label": "Copy carries no personal data",
|
|
527
|
+
"x": 520,
|
|
528
|
+
"y": 1040,
|
|
529
|
+
"given": "a production snapshot",
|
|
530
|
+
"when": "it is copied to a test environment",
|
|
531
|
+
"then": "a scan of the copy finds 0 personal-data values and the copy is refused otherwise",
|
|
532
|
+
"hubWhen": {
|
|
533
|
+
"DATA": [
|
|
534
|
+
"masked"
|
|
535
|
+
]
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"id": "sc-e2e-pr",
|
|
540
|
+
"type": "scenario",
|
|
541
|
+
"label": "Broken journey blocks merge",
|
|
542
|
+
"x": 520,
|
|
543
|
+
"y": 1170,
|
|
544
|
+
"given": "a pull request that breaks one of: {{JOURNEYS}}",
|
|
545
|
+
"when": "its ephemeral environment is tested",
|
|
546
|
+
"then": "the journey fails and the pull request cannot be merged",
|
|
547
|
+
"hubWhen": {
|
|
548
|
+
"E2E": [
|
|
549
|
+
"pipeline"
|
|
550
|
+
]
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"id": "sc-e2e-staging",
|
|
555
|
+
"type": "scenario",
|
|
556
|
+
"label": "Broken build not promoted",
|
|
557
|
+
"x": 520,
|
|
558
|
+
"y": 1300,
|
|
559
|
+
"given": "a merged build that breaks one of: {{JOURNEYS}}",
|
|
560
|
+
"when": "it is tested on staging",
|
|
561
|
+
"then": "it is not promoted to production and the team is told",
|
|
562
|
+
"hubWhen": {
|
|
563
|
+
"E2E": [
|
|
564
|
+
"staging"
|
|
565
|
+
]
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"id": "sc-e2e-prod",
|
|
570
|
+
"type": "scenario",
|
|
571
|
+
"label": "Failing journey rolls back",
|
|
572
|
+
"x": 520,
|
|
573
|
+
"y": 1430,
|
|
574
|
+
"given": "a release that breaks one of: {{JOURNEYS}}",
|
|
575
|
+
"when": "the synthetic check fails twice in a row",
|
|
576
|
+
"then": "the release is rolled back automatically and the team is alerted",
|
|
577
|
+
"hubWhen": {
|
|
578
|
+
"E2E": [
|
|
579
|
+
"production"
|
|
580
|
+
]
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"id": "sc-quarantine",
|
|
585
|
+
"type": "scenario",
|
|
586
|
+
"label": "Flaky test leaves the gate",
|
|
587
|
+
"x": 520,
|
|
588
|
+
"y": 1560,
|
|
589
|
+
"given": "a test that fails and then passes on the same commit",
|
|
590
|
+
"when": "it is reported as flaky",
|
|
591
|
+
"then": "within 1 working day it is quarantined with an owner, and after {{QUARANTINE_DAYS}} days it is fixed or deleted",
|
|
592
|
+
"hubWhen": {
|
|
593
|
+
"FLAKY": [
|
|
594
|
+
"quarantine"
|
|
595
|
+
]
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
"id": "sc-no-retry",
|
|
600
|
+
"type": "scenario",
|
|
601
|
+
"label": "Flaky test stops the line",
|
|
602
|
+
"x": 520,
|
|
603
|
+
"y": 1690,
|
|
604
|
+
"given": "a test that fails and then passes on the same commit",
|
|
605
|
+
"when": "the build runs",
|
|
606
|
+
"then": "the build fails naming the test as flaky",
|
|
607
|
+
"hubWhen": {
|
|
608
|
+
"FLAKY": [
|
|
609
|
+
"zero"
|
|
610
|
+
]
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"id": "adr-pyramid",
|
|
615
|
+
"type": "adr",
|
|
616
|
+
"label": "A test pyramid",
|
|
617
|
+
"x": 780,
|
|
618
|
+
"y": 0,
|
|
619
|
+
"concern": "test-strategy",
|
|
620
|
+
"status": "accepted",
|
|
621
|
+
"date": "",
|
|
622
|
+
"context": "Code lives in this element and changes every week; the tests decide whether a change can be released with confidence or only with hope. The forces: fast tests give feedback in minutes but exercise little of the wiring, while end-to-end tests exercise everything but are slow, brittle and late; coverage shows what was run, not what was checked; tests that share data or depend on order fail at random, and a suite that fails at random is soon ignored; copies of production data make realistic tests but carry personal data; and every service another team depends on is a contract that can break without a test of its own failing.",
|
|
623
|
+
"decision": "Tests follow the pyramid: most are unit tests of the domain logic, run without network or database (JUnit 5, xUnit, Vitest or pytest by stack); integration tests cover each adapter against the real dependency in a container (Testcontainers); a few end-to-end tests cover {{JOURNEYS}} (Playwright). Every pull request runs unit and integration tests within {{PIPELINE_MINUTES}} minutes. Gate: {{GATE}}, measured in the SonarQube (or SonarCloud) quality gate on new code; mutation testing with Stryker (JS/TS, .NET) or PIT (JVM). Test data: {{DATA}}. End-to-end tests run {{E2E}}. Flaky tests: {{FLAKY}}.",
|
|
624
|
+
"consequences": "• Fast, precise feedback: a failing unit test names the rule that broke.\n• Refactoring that changes internal interfaces rewrites many unit tests; test behaviour, not methods, to limit it.\n• Wiring bugs (configuration, queries, serialisation) are caught only by the thinner integration layer.\n• Requires code where the logic can be called without infrastructure.",
|
|
625
|
+
"alternatives": "1. A testing trophy: mostly integration tests, better for glue code, slower feedback.\n2. Contract-heavy: for many independently deployed services.\n3. An ice-cream cone of manual and end-to-end tests: slow, brittle and late; the shape to move away from.",
|
|
626
|
+
"hubWhen": {
|
|
627
|
+
"SHAPE": [
|
|
628
|
+
"pyramid"
|
|
629
|
+
]
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"id": "adr-trophy",
|
|
634
|
+
"type": "adr",
|
|
635
|
+
"label": "A testing trophy",
|
|
636
|
+
"x": 780,
|
|
637
|
+
"y": 130,
|
|
638
|
+
"concern": "test-strategy",
|
|
639
|
+
"status": "accepted",
|
|
640
|
+
"date": "",
|
|
641
|
+
"context": "Code lives in this element and changes every week; the tests decide whether a change can be released with confidence or only with hope. The forces: fast tests give feedback in minutes but exercise little of the wiring, while end-to-end tests exercise everything but are slow, brittle and late; coverage shows what was run, not what was checked; tests that share data or depend on order fail at random, and a suite that fails at random is soon ignored; copies of production data make realistic tests but carry personal data; and every service another team depends on is a contract that can break without a test of its own failing.",
|
|
642
|
+
"decision": "Most tests are integration tests that run the element through its public interface (HTTP or the UI component tree) with its real database and broker started by Testcontainers, faking only systems outside it (WireMock or MSW); static analysis (TypeScript strict, ESLint or the compiler and SonarQube) and a few unit tests for pure logic sit below; a few end-to-end tests cover {{JOURNEYS}} with Playwright. Every pull request runs them within {{PIPELINE_MINUTES}} minutes. Gate: {{GATE}}, in the SonarQube quality gate on new code. Test data: {{DATA}}. End-to-end tests run {{E2E}}. Flaky tests: {{FLAKY}}. In-memory substitutes for the database (H2, SQLite for PostgreSQL, pg-mem) are not used.",
|
|
643
|
+
"consequences": "• Tests survive refactoring because they use the element as its callers do.\n• Wiring, queries and serialisation are tested for real.\n• Slower than unit tests: containers start once per run and tests must clean up; keeping the run under {{PIPELINE_MINUTES}} minutes needs parallel workers.\n• A failing test says which behaviour broke, not which line; debugging takes longer.",
|
|
644
|
+
"alternatives": "1. A test pyramid: faster and more precise where there is real domain logic.\n2. In-memory database substitutes: faster, but they differ from the real engine exactly where bugs hide.\n3. Contract-heavy: needed in addition when several services are owned by different teams.",
|
|
645
|
+
"hubWhen": {
|
|
646
|
+
"SHAPE": [
|
|
647
|
+
"trophy"
|
|
648
|
+
]
|
|
649
|
+
}
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"id": "adr-contract",
|
|
653
|
+
"type": "adr",
|
|
654
|
+
"label": "Consumer-driven contracts",
|
|
655
|
+
"x": 780,
|
|
656
|
+
"y": 260,
|
|
657
|
+
"concern": "test-strategy",
|
|
658
|
+
"status": "accepted",
|
|
659
|
+
"date": "",
|
|
660
|
+
"context": "Code lives in this element and changes every week; the tests decide whether a change can be released with confidence or only with hope. The forces: fast tests give feedback in minutes but exercise little of the wiring, while end-to-end tests exercise everything but are slow, brittle and late; coverage shows what was run, not what was checked; tests that share data or depend on order fail at random, and a suite that fails at random is soon ignored; copies of production data make realistic tests but carry personal data; and every service another team depends on is a contract that can break without a test of its own failing.",
|
|
661
|
+
"decision": "Each service is tested alone (unit and integration tests with Testcontainers), and every call between services is covered by consumer-driven contract tests with Pact: consumers publish their contracts to a Pact Broker (or PactFlow), providers verify them in their build, and every deployment asks can-i-deploy first. Asynchronous messages get message pacts. End-to-end tests across services shrink to {{JOURNEYS}}, run {{E2E}}. Every pull request runs its service's tests within {{PIPELINE_MINUTES}} minutes. Gate: {{GATE}}, in the SonarQube quality gate on new code. Test data: {{DATA}}. Flaky tests: {{FLAKY}}. Choose Pact for HTTP and messages across languages; Spring Cloud Contract only when every service is on Spring.",
|
|
662
|
+
"consequences": "• A breaking change between services is found in the provider's build in minutes, not in a shared environment days later.\n• Teams deploy independently without a full environment of every service.\n• Contracts cover only what consumers use; a consumer without a contract is unprotected.\n• The broker is one more thing to run (or a PactFlow subscription), and teams must learn the workflow.",
|
|
663
|
+
"alternatives": "1. End-to-end tests across all services in a shared environment: realistic, but slow, flaky and blocking every team.\n2. Provider-written OpenAPI schema tests: check the provider against its own document, not against what consumers rely on.\n3. A test pyramid per service without contracts: fast, but blind to breaking changes between services.",
|
|
664
|
+
"hubWhen": {
|
|
665
|
+
"SHAPE": [
|
|
666
|
+
"contract"
|
|
667
|
+
]
|
|
668
|
+
}
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
"id": "ff-pr-time",
|
|
672
|
+
"type": "fitness-fn",
|
|
673
|
+
"label": "Pull-request tests in time",
|
|
674
|
+
"x": 1040,
|
|
675
|
+
"y": 0,
|
|
676
|
+
"category": "process",
|
|
677
|
+
"threshold": "The pull-request test job finishes within {{PIPELINE_MINUTES}} minutes and is a required check for merging",
|
|
678
|
+
"description": "The test job has a hard timeout of {{PIPELINE_MINUTES}} minutes and is a required status check in branch protection, so a slow suite fails instead of quietly growing.\n\nTool: GitHub Actions (timeout-minutes) with branch protection\n\n```yaml\n# .github/workflows/test.yml\nname: test\non: [pull_request]\njobs:\n test:\n runs-on: ubuntu-latest\n timeout-minutes: 10 # PIPELINE_MINUTES\n steps:\n - uses: actions/checkout@v4\n - uses: actions/setup-node@v4\n with: { node-version-file: .nvmrc, cache: npm }\n - run: npm ci\n - run: npm test -- --reporter=junit --outputFile=reports/junit.xml\n```"
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"id": "ff-coverage",
|
|
682
|
+
"type": "fitness-fn",
|
|
683
|
+
"label": "Coverage of new code",
|
|
684
|
+
"x": 1040,
|
|
685
|
+
"y": 130,
|
|
686
|
+
"category": "process",
|
|
687
|
+
"threshold": "Coverage on new code at least {{COVERAGE}}%; the quality gate fails the pull request below it",
|
|
688
|
+
"description": "The pipeline sends the coverage report to SonarQube and waits for the quality gate, whose condition is \"Coverage on New Code is less than {{COVERAGE}}%\".\n\nTool: SonarQube quality gate\n\n```properties\n# sonar-project.properties\nsonar.projectKey=shop-order-api\nsonar.sources=src\nsonar.tests=test\nsonar.javascript.lcov.reportPaths=coverage/lcov.info\nsonar.newCode.referenceBranch=main\n# fail the pipeline when the gate fails\nsonar.qualitygate.wait=true\n# Quality gate (in SonarQube): Coverage on New Code < 80% -> failed\n```"
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"id": "ff-mutation",
|
|
692
|
+
"type": "fitness-fn",
|
|
693
|
+
"label": "Mutation score",
|
|
694
|
+
"x": 1040,
|
|
695
|
+
"y": 260,
|
|
696
|
+
"category": "process",
|
|
697
|
+
"threshold": "Mutation score on changed code at least {{MUTATION}}%; the build breaks below it",
|
|
698
|
+
"description": "Stryker runs incrementally on the files the pull request changes and breaks the build when the score falls below the threshold. On the JVM, PIT with mutationThreshold and the git-based scm goal does the same.\n\nTool: Stryker Mutator\n\n```json\n{\n \"$schema\": \"./node_modules/@stryker-mutator/core/schema/stryker-schema.json\",\n \"testRunner\": \"vitest\",\n \"mutate\": [\"src/**/*.ts\", \"!src/**/*.test.ts\"],\n \"incremental\": true,\n \"reporters\": [\"clear-text\", \"html\", \"json\"],\n \"thresholds\": { \"high\": 85, \"low\": 75, \"break\": 70 }\n}\n```",
|
|
699
|
+
"hubWhen": {
|
|
700
|
+
"GATE": [
|
|
701
|
+
"mutation"
|
|
702
|
+
]
|
|
703
|
+
}
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"id": "ff-unit-isolated",
|
|
707
|
+
"type": "fitness-fn",
|
|
708
|
+
"label": "Unit tests stay isolated",
|
|
709
|
+
"x": 1040,
|
|
710
|
+
"y": 390,
|
|
711
|
+
"category": "structural",
|
|
712
|
+
"threshold": "0 unit tests reach the network; unit tests at least 70% of all tests",
|
|
713
|
+
"description": "The unit-test project disables network connections in its setup, so a unit test that reaches a server fails; a step in CI counts tests per suite from the JUnit reports and fails when unit tests are below 70%.\n\nTool: Vitest with nock\n\n```ts\n// test/unit/setup.ts (vitest.config.ts: test.setupFiles for the unit project)\nimport nock from 'nock'\nimport { afterAll, beforeAll } from 'vitest'\n\nbeforeAll(() => nock.disableNetConnect()) // any real HTTP call throws\nafterAll(() => nock.enableNetConnect())\n\n// CI: unit share from the JUnit reports\n// unit=$(xmllint --xpath 'sum(//testsuites/@tests)' reports/unit.xml)\n// all=$(xmllint --xpath 'sum(//testsuites/@tests)' reports/*.xml)\n// [ $((unit * 100 / all)) -ge 70 ]\n```",
|
|
714
|
+
"hubWhen": {
|
|
715
|
+
"SHAPE": [
|
|
716
|
+
"pyramid"
|
|
717
|
+
]
|
|
718
|
+
}
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
"id": "ff-no-fakes",
|
|
722
|
+
"type": "fitness-fn",
|
|
723
|
+
"label": "No in-memory database",
|
|
724
|
+
"x": 1040,
|
|
725
|
+
"y": 520,
|
|
726
|
+
"category": "structural",
|
|
727
|
+
"threshold": "0 test files import an in-memory database substitute",
|
|
728
|
+
"description": "A dependency rule fails the build when a test imports an in-memory substitute for the database; the integration tests use Testcontainers with the production engine and version.\n\nTool: dependency-cruiser\n\n```js\n// .dependency-cruiser.cjs\nmodule.exports = {\n forbidden: [{\n name: 'no-in-memory-database',\n comment: 'ADR Testing trophy: integration tests use the real engine (Testcontainers)',\n severity: 'error',\n from: { path: '\\\\.(test|spec)\\\\.ts$' },\n to: { path: 'node_modules/(pg-mem|sqlite3|better-sqlite3|mongodb-memory-server)' },\n }],\n}\n```",
|
|
729
|
+
"hubWhen": {
|
|
730
|
+
"SHAPE": [
|
|
731
|
+
"trophy"
|
|
732
|
+
]
|
|
733
|
+
}
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"id": "ff-can-i-deploy",
|
|
737
|
+
"type": "fitness-fn",
|
|
738
|
+
"label": "Contracts verified",
|
|
739
|
+
"x": 1040,
|
|
740
|
+
"y": 650,
|
|
741
|
+
"category": "process",
|
|
742
|
+
"threshold": "0 deployments of a version that has not verified the contracts of the consumers in the target environment",
|
|
743
|
+
"description": "The deploy job asks the Pact Broker whether this version is compatible with what is deployed in the target environment, and stops when it is not; after deploying it records the deployment.\n\nTool: Pact Broker can-i-deploy (pact-broker CLI)\n\n```bash\npact-broker can-i-deploy \\\n --pacticipant order-api --version \"$GIT_SHA\" \\\n --to-environment production \\\n --broker-base-url \"$PACT_BROKER_URL\" --retry-while-unknown 6 --retry-interval 10\n\n# after a successful deploy\npact-broker record-deployment \\\n --pacticipant order-api --version \"$GIT_SHA\" --environment production\n```",
|
|
744
|
+
"hubWhen": {
|
|
745
|
+
"SHAPE": [
|
|
746
|
+
"contract"
|
|
747
|
+
]
|
|
748
|
+
}
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
"id": "ff-shuffle",
|
|
752
|
+
"type": "fitness-fn",
|
|
753
|
+
"label": "Tests pass in any order",
|
|
754
|
+
"x": 1040,
|
|
755
|
+
"y": 780,
|
|
756
|
+
"category": "process",
|
|
757
|
+
"threshold": "The suite passes in 3 consecutive runs with random order and parallel workers",
|
|
758
|
+
"description": "A nightly job runs the suite three times with shuffled order and a different seed each time; a failure prints the seed, so the order can be reproduced. JUnit 5: junit.jupiter.testmethod.order.default=org.junit.jupiter.api.MethodOrderer$Random; pytest: pytest-randomly.\n\nTool: Vitest (sequence.shuffle)\n\n```ts\n// vitest.config.ts\nimport { defineConfig } from 'vitest/config'\nexport default defineConfig({\n test: {\n sequence: { shuffle: true }, // files and tests in random order\n pool: 'threads',\n },\n})\n// nightly: for seed in 1 2 3; do npx vitest run --sequence.seed=$RANDOM || exit 1; done\n```",
|
|
759
|
+
"hubWhen": {
|
|
760
|
+
"DATA": [
|
|
761
|
+
"synthetic",
|
|
762
|
+
"fixtures"
|
|
763
|
+
]
|
|
764
|
+
}
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
"id": "ff-pii-scan",
|
|
768
|
+
"type": "fitness-fn",
|
|
769
|
+
"label": "Test copies hold no personal data",
|
|
770
|
+
"x": 1040,
|
|
771
|
+
"y": 910,
|
|
772
|
+
"category": "operational",
|
|
773
|
+
"threshold": "0 personal-data findings in a sample of 10,000 rows per table of each copy; a copy with findings is not released to test environments",
|
|
774
|
+
"description": "Before a masked copy is released, a job samples every text column and runs Presidio's analyzer over it; any finding stops the release of the copy.\n\nTool: Microsoft Presidio\n\n```python\nfrom presidio_analyzer import AnalyzerEngine\nanalyzer = AnalyzerEngine()\nENTITIES = [\"PERSON\", \"EMAIL_ADDRESS\", \"PHONE_NUMBER\", \"IBAN_CODE\", \"CREDIT_CARD\", \"LOCATION\"]\n\ndef findings(rows):\n for table, column, value in rows: # sampled text columns of the copy\n for hit in analyzer.analyze(text=str(value), entities=ENTITIES, language=\"en\"):\n if hit.score >= 0.6:\n yield table, column, hit.entity_type\n\nhits = list(findings(sample_rows(limit_per_table=10_000)))\nassert not hits, f\"personal data in the test copy: {hits[:20]}\"\n```",
|
|
775
|
+
"hubWhen": {
|
|
776
|
+
"DATA": [
|
|
777
|
+
"masked"
|
|
778
|
+
]
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"id": "ff-e2e-gate",
|
|
783
|
+
"type": "fitness-fn",
|
|
784
|
+
"label": "Journeys gate the release",
|
|
785
|
+
"x": 1040,
|
|
786
|
+
"y": 1040,
|
|
787
|
+
"category": "process",
|
|
788
|
+
"threshold": "All end-to-end tests of {{JOURNEYS}} pass before the build is merged or promoted; 0 skipped",
|
|
789
|
+
"description": "Playwright runs the journeys against the environment the pipeline deployed (an ephemeral one per pull request, or staging after the merge); its job is a required check for the merge or for the promotion.\n\nTool: Playwright\n\n```ts\n// playwright.config.ts\nimport { defineConfig } from '@playwright/test'\nexport default defineConfig({\n testDir: 'e2e',\n forbidOnly: true, // no test.only left in the gate\n retries: 0,\n reporter: [['junit', { outputFile: 'reports/e2e.xml' }]],\n use: { baseURL: process.env.E2E_BASE_URL, trace: 'retain-on-failure' },\n})\n```",
|
|
790
|
+
"hubWhen": {
|
|
791
|
+
"E2E": [
|
|
792
|
+
"pipeline",
|
|
793
|
+
"staging"
|
|
794
|
+
]
|
|
795
|
+
}
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"id": "ff-synthetic",
|
|
799
|
+
"type": "fitness-fn",
|
|
800
|
+
"label": "Journeys checked in production",
|
|
801
|
+
"x": 1040,
|
|
802
|
+
"y": 1170,
|
|
803
|
+
"category": "operational",
|
|
804
|
+
"threshold": "Each journey of {{JOURNEYS}} runs every 5 minutes from 2 locations; 2 failures in a row roll the release back",
|
|
805
|
+
"description": "The Playwright journeys run as Checkly browser checks against production after each deploy and every 5 minutes; an alert channel triggers the rollback.\n\nTool: Checkly (Playwright browser checks)\n\n```ts\n// checkly/checkout.check.ts\nimport { BrowserCheck, Frequency } from 'checkly/constructs'\nnew BrowserCheck('checkout-journey', {\n name: 'Checkout journey',\n frequency: Frequency.EVERY_5M,\n locations: ['eu-west-1', 'eu-central-1'],\n degradedResponseTime: 8000,\n maxResponseTime: 15000,\n code: { entrypoint: '../e2e/checkout.spec.ts' },\n})\n```",
|
|
806
|
+
"hubWhen": {
|
|
807
|
+
"E2E": [
|
|
808
|
+
"production"
|
|
809
|
+
]
|
|
810
|
+
}
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
"id": "ff-quarantine",
|
|
814
|
+
"type": "fitness-fn",
|
|
815
|
+
"label": "Quarantine is emptied",
|
|
816
|
+
"x": 1040,
|
|
817
|
+
"y": 1300,
|
|
818
|
+
"category": "process",
|
|
819
|
+
"threshold": "0 tests in quarantine for more than {{QUARANTINE_DAYS}} days; every entry has an owner and a ticket",
|
|
820
|
+
"description": "Quarantined tests are listed in quarantine.json and tagged @quarantine, which the gate skips and a separate non-blocking job runs. A test over the list fails the build when an entry is older than the deadline or has no owner.\n\nTool: Vitest (a test over quarantine.json)\n\n```ts\nimport { expect, it } from 'vitest'\nimport quarantine from '../quarantine.json' // [{ test, owner, ticket, since: \"2026-10-01\" }]\n\nconst DAYS = Number(process.env.QUARANTINE_DAYS ?? 7)\n\nit('no test stays in quarantine past the deadline', () => {\n const overdue = quarantine.filter((q) =>\n !q.owner || !q.ticket || (Date.now() - Date.parse(q.since)) / 86_400_000 > DAYS)\n expect(overdue).toEqual([])\n})\n```",
|
|
821
|
+
"hubWhen": {
|
|
822
|
+
"FLAKY": [
|
|
823
|
+
"quarantine"
|
|
824
|
+
]
|
|
825
|
+
}
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
"id": "ff-flaky-fails",
|
|
829
|
+
"type": "fitness-fn",
|
|
830
|
+
"label": "Flaky tests fail the build",
|
|
831
|
+
"x": 1040,
|
|
832
|
+
"y": 1430,
|
|
833
|
+
"category": "process",
|
|
834
|
+
"threshold": "0 tests that pass only on retry; such a test fails the build",
|
|
835
|
+
"description": "The test-retry plugin reruns a failed test once only to tell a flake from a real failure; with failOnPassedAfterRetry a test that passes on retry still fails the build and is reported as flaky.\n\nTool: Gradle test-retry plugin\n\n```kotlin\n// build.gradle.kts\nplugins { id(\"org.gradle.test-retry\") version \"1.6.2\" }\n\ntasks.test {\n retry {\n maxRetries.set(1)\n failOnPassedAfterRetry.set(true) // a flake is a failure\n }\n}\n```",
|
|
836
|
+
"hubWhen": {
|
|
837
|
+
"FLAKY": [
|
|
838
|
+
"zero"
|
|
839
|
+
]
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
],
|
|
843
|
+
"relations": [
|
|
844
|
+
{
|
|
845
|
+
"id": "req-pr-suite--derives--need",
|
|
846
|
+
"sourceId": "req-pr-suite",
|
|
847
|
+
"targetId": "need",
|
|
848
|
+
"relationType": "derives"
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
"id": "req-coverage--derives--need",
|
|
852
|
+
"sourceId": "req-coverage",
|
|
853
|
+
"targetId": "need",
|
|
854
|
+
"relationType": "derives"
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"id": "req-mutation--derives--need",
|
|
858
|
+
"sourceId": "req-mutation",
|
|
859
|
+
"targetId": "need",
|
|
860
|
+
"relationType": "derives"
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"id": "req-pyramid--derives--need",
|
|
864
|
+
"sourceId": "req-pyramid",
|
|
865
|
+
"targetId": "need",
|
|
866
|
+
"relationType": "derives"
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"id": "req-trophy--derives--need",
|
|
870
|
+
"sourceId": "req-trophy",
|
|
871
|
+
"targetId": "need",
|
|
872
|
+
"relationType": "derives"
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"id": "req-contracts--derives--need",
|
|
876
|
+
"sourceId": "req-contracts",
|
|
877
|
+
"targetId": "need",
|
|
878
|
+
"relationType": "derives"
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
"id": "req-own-data--derives--need",
|
|
882
|
+
"sourceId": "req-own-data",
|
|
883
|
+
"targetId": "need",
|
|
884
|
+
"relationType": "derives"
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"id": "req-fixtures--derives--need",
|
|
888
|
+
"sourceId": "req-fixtures",
|
|
889
|
+
"targetId": "need",
|
|
890
|
+
"relationType": "derives"
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"id": "req-masking--derives--need",
|
|
894
|
+
"sourceId": "req-masking",
|
|
895
|
+
"targetId": "need",
|
|
896
|
+
"relationType": "derives"
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"id": "req-e2e-pr--derives--need",
|
|
900
|
+
"sourceId": "req-e2e-pr",
|
|
901
|
+
"targetId": "need",
|
|
902
|
+
"relationType": "derives"
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
"id": "req-e2e-staging--derives--need",
|
|
906
|
+
"sourceId": "req-e2e-staging",
|
|
907
|
+
"targetId": "need",
|
|
908
|
+
"relationType": "derives"
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
"id": "req-e2e-prod--derives--need",
|
|
912
|
+
"sourceId": "req-e2e-prod",
|
|
913
|
+
"targetId": "need",
|
|
914
|
+
"relationType": "derives"
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
"id": "req-quarantine--derives--need",
|
|
918
|
+
"sourceId": "req-quarantine",
|
|
919
|
+
"targetId": "need",
|
|
920
|
+
"relationType": "derives"
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"id": "req-no-retry--derives--need",
|
|
924
|
+
"sourceId": "req-no-retry",
|
|
925
|
+
"targetId": "need",
|
|
926
|
+
"relationType": "derives"
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
"id": "sc-pr-suite--verifies--req-pr-suite",
|
|
930
|
+
"sourceId": "sc-pr-suite",
|
|
931
|
+
"targetId": "req-pr-suite",
|
|
932
|
+
"relationType": "verifies"
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
"id": "sc-coverage--verifies--req-coverage",
|
|
936
|
+
"sourceId": "sc-coverage",
|
|
937
|
+
"targetId": "req-coverage",
|
|
938
|
+
"relationType": "verifies"
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"id": "sc-mutation--verifies--req-mutation",
|
|
942
|
+
"sourceId": "sc-mutation",
|
|
943
|
+
"targetId": "req-mutation",
|
|
944
|
+
"relationType": "verifies"
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
"id": "sc-pyramid--verifies--req-pyramid",
|
|
948
|
+
"sourceId": "sc-pyramid",
|
|
949
|
+
"targetId": "req-pyramid",
|
|
950
|
+
"relationType": "verifies"
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
"id": "sc-trophy--verifies--req-trophy",
|
|
954
|
+
"sourceId": "sc-trophy",
|
|
955
|
+
"targetId": "req-trophy",
|
|
956
|
+
"relationType": "verifies"
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"id": "sc-contracts--verifies--req-contracts",
|
|
960
|
+
"sourceId": "sc-contracts",
|
|
961
|
+
"targetId": "req-contracts",
|
|
962
|
+
"relationType": "verifies"
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
"id": "sc-own-data--verifies--req-own-data",
|
|
966
|
+
"sourceId": "sc-own-data",
|
|
967
|
+
"targetId": "req-own-data",
|
|
968
|
+
"relationType": "verifies"
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"id": "sc-fixtures--verifies--req-fixtures",
|
|
972
|
+
"sourceId": "sc-fixtures",
|
|
973
|
+
"targetId": "req-fixtures",
|
|
974
|
+
"relationType": "verifies"
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
"id": "sc-masking--verifies--req-masking",
|
|
978
|
+
"sourceId": "sc-masking",
|
|
979
|
+
"targetId": "req-masking",
|
|
980
|
+
"relationType": "verifies"
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
"id": "sc-e2e-pr--verifies--req-e2e-pr",
|
|
984
|
+
"sourceId": "sc-e2e-pr",
|
|
985
|
+
"targetId": "req-e2e-pr",
|
|
986
|
+
"relationType": "verifies"
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
"id": "sc-e2e-staging--verifies--req-e2e-staging",
|
|
990
|
+
"sourceId": "sc-e2e-staging",
|
|
991
|
+
"targetId": "req-e2e-staging",
|
|
992
|
+
"relationType": "verifies"
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
"id": "sc-e2e-prod--verifies--req-e2e-prod",
|
|
996
|
+
"sourceId": "sc-e2e-prod",
|
|
997
|
+
"targetId": "req-e2e-prod",
|
|
998
|
+
"relationType": "verifies"
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
"id": "sc-quarantine--verifies--req-quarantine",
|
|
1002
|
+
"sourceId": "sc-quarantine",
|
|
1003
|
+
"targetId": "req-quarantine",
|
|
1004
|
+
"relationType": "verifies"
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"id": "sc-no-retry--verifies--req-no-retry",
|
|
1008
|
+
"sourceId": "sc-no-retry",
|
|
1009
|
+
"targetId": "req-no-retry",
|
|
1010
|
+
"relationType": "verifies"
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"id": "ff-pr-time--implements--adr-pyramid",
|
|
1014
|
+
"sourceId": "ff-pr-time",
|
|
1015
|
+
"targetId": "adr-pyramid",
|
|
1016
|
+
"relationType": "implements"
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
"id": "ff-pr-time--implements--adr-trophy",
|
|
1020
|
+
"sourceId": "ff-pr-time",
|
|
1021
|
+
"targetId": "adr-trophy",
|
|
1022
|
+
"relationType": "implements"
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
"id": "ff-pr-time--implements--adr-contract",
|
|
1026
|
+
"sourceId": "ff-pr-time",
|
|
1027
|
+
"targetId": "adr-contract",
|
|
1028
|
+
"relationType": "implements"
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
"id": "ff-coverage--implements--adr-pyramid",
|
|
1032
|
+
"sourceId": "ff-coverage",
|
|
1033
|
+
"targetId": "adr-pyramid",
|
|
1034
|
+
"relationType": "implements"
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
"id": "ff-coverage--implements--adr-trophy",
|
|
1038
|
+
"sourceId": "ff-coverage",
|
|
1039
|
+
"targetId": "adr-trophy",
|
|
1040
|
+
"relationType": "implements"
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
"id": "ff-coverage--implements--adr-contract",
|
|
1044
|
+
"sourceId": "ff-coverage",
|
|
1045
|
+
"targetId": "adr-contract",
|
|
1046
|
+
"relationType": "implements"
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"id": "ff-mutation--implements--adr-pyramid",
|
|
1050
|
+
"sourceId": "ff-mutation",
|
|
1051
|
+
"targetId": "adr-pyramid",
|
|
1052
|
+
"relationType": "implements"
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
"id": "ff-mutation--implements--adr-trophy",
|
|
1056
|
+
"sourceId": "ff-mutation",
|
|
1057
|
+
"targetId": "adr-trophy",
|
|
1058
|
+
"relationType": "implements"
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
"id": "ff-mutation--implements--adr-contract",
|
|
1062
|
+
"sourceId": "ff-mutation",
|
|
1063
|
+
"targetId": "adr-contract",
|
|
1064
|
+
"relationType": "implements"
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
"id": "ff-unit-isolated--implements--adr-pyramid",
|
|
1068
|
+
"sourceId": "ff-unit-isolated",
|
|
1069
|
+
"targetId": "adr-pyramid",
|
|
1070
|
+
"relationType": "implements"
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
"id": "ff-no-fakes--implements--adr-trophy",
|
|
1074
|
+
"sourceId": "ff-no-fakes",
|
|
1075
|
+
"targetId": "adr-trophy",
|
|
1076
|
+
"relationType": "implements"
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
"id": "ff-can-i-deploy--implements--adr-contract",
|
|
1080
|
+
"sourceId": "ff-can-i-deploy",
|
|
1081
|
+
"targetId": "adr-contract",
|
|
1082
|
+
"relationType": "implements"
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
"id": "ff-shuffle--implements--adr-pyramid",
|
|
1086
|
+
"sourceId": "ff-shuffle",
|
|
1087
|
+
"targetId": "adr-pyramid",
|
|
1088
|
+
"relationType": "implements"
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
"id": "ff-shuffle--implements--adr-trophy",
|
|
1092
|
+
"sourceId": "ff-shuffle",
|
|
1093
|
+
"targetId": "adr-trophy",
|
|
1094
|
+
"relationType": "implements"
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
"id": "ff-shuffle--implements--adr-contract",
|
|
1098
|
+
"sourceId": "ff-shuffle",
|
|
1099
|
+
"targetId": "adr-contract",
|
|
1100
|
+
"relationType": "implements"
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
"id": "ff-pii-scan--implements--adr-pyramid",
|
|
1104
|
+
"sourceId": "ff-pii-scan",
|
|
1105
|
+
"targetId": "adr-pyramid",
|
|
1106
|
+
"relationType": "implements"
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
"id": "ff-pii-scan--implements--adr-trophy",
|
|
1110
|
+
"sourceId": "ff-pii-scan",
|
|
1111
|
+
"targetId": "adr-trophy",
|
|
1112
|
+
"relationType": "implements"
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
"id": "ff-pii-scan--implements--adr-contract",
|
|
1116
|
+
"sourceId": "ff-pii-scan",
|
|
1117
|
+
"targetId": "adr-contract",
|
|
1118
|
+
"relationType": "implements"
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
"id": "ff-e2e-gate--implements--adr-pyramid",
|
|
1122
|
+
"sourceId": "ff-e2e-gate",
|
|
1123
|
+
"targetId": "adr-pyramid",
|
|
1124
|
+
"relationType": "implements"
|
|
1125
|
+
},
|
|
1126
|
+
{
|
|
1127
|
+
"id": "ff-e2e-gate--implements--adr-trophy",
|
|
1128
|
+
"sourceId": "ff-e2e-gate",
|
|
1129
|
+
"targetId": "adr-trophy",
|
|
1130
|
+
"relationType": "implements"
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
"id": "ff-e2e-gate--implements--adr-contract",
|
|
1134
|
+
"sourceId": "ff-e2e-gate",
|
|
1135
|
+
"targetId": "adr-contract",
|
|
1136
|
+
"relationType": "implements"
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
"id": "ff-synthetic--implements--adr-pyramid",
|
|
1140
|
+
"sourceId": "ff-synthetic",
|
|
1141
|
+
"targetId": "adr-pyramid",
|
|
1142
|
+
"relationType": "implements"
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
"id": "ff-synthetic--implements--adr-trophy",
|
|
1146
|
+
"sourceId": "ff-synthetic",
|
|
1147
|
+
"targetId": "adr-trophy",
|
|
1148
|
+
"relationType": "implements"
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
"id": "ff-synthetic--implements--adr-contract",
|
|
1152
|
+
"sourceId": "ff-synthetic",
|
|
1153
|
+
"targetId": "adr-contract",
|
|
1154
|
+
"relationType": "implements"
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
"id": "ff-quarantine--implements--adr-pyramid",
|
|
1158
|
+
"sourceId": "ff-quarantine",
|
|
1159
|
+
"targetId": "adr-pyramid",
|
|
1160
|
+
"relationType": "implements"
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"id": "ff-quarantine--implements--adr-trophy",
|
|
1164
|
+
"sourceId": "ff-quarantine",
|
|
1165
|
+
"targetId": "adr-trophy",
|
|
1166
|
+
"relationType": "implements"
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
"id": "ff-quarantine--implements--adr-contract",
|
|
1170
|
+
"sourceId": "ff-quarantine",
|
|
1171
|
+
"targetId": "adr-contract",
|
|
1172
|
+
"relationType": "implements"
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
"id": "ff-flaky-fails--implements--adr-pyramid",
|
|
1176
|
+
"sourceId": "ff-flaky-fails",
|
|
1177
|
+
"targetId": "adr-pyramid",
|
|
1178
|
+
"relationType": "implements"
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
"id": "ff-flaky-fails--implements--adr-trophy",
|
|
1182
|
+
"sourceId": "ff-flaky-fails",
|
|
1183
|
+
"targetId": "adr-trophy",
|
|
1184
|
+
"relationType": "implements"
|
|
1185
|
+
},
|
|
1186
|
+
{
|
|
1187
|
+
"id": "ff-flaky-fails--implements--adr-contract",
|
|
1188
|
+
"sourceId": "ff-flaky-fails",
|
|
1189
|
+
"targetId": "adr-contract",
|
|
1190
|
+
"relationType": "implements"
|
|
1191
|
+
}
|
|
1192
|
+
]
|
|
1193
|
+
}
|