playwright-performance-regression 0.1.0-next.1 → 0.1.0-next.3
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/CHANGELOG.md +181 -0
- package/README.md +70 -51
- package/dist/{chunk-GCA73FFP.cjs → chunk-2JO5HVPC.cjs} +351 -44
- package/dist/{chunk-WZVQK7CQ.cjs → chunk-44ASXVQN.cjs} +96 -198
- package/dist/{chunk-L5C63HEF.js → chunk-AQ2XKYNV.js} +347 -45
- package/dist/chunk-BAOTUUTV.cjs +611 -0
- package/dist/chunk-DX36GFOZ.js +558 -0
- package/dist/chunk-LTRHMBVY.js +5592 -0
- package/dist/{chunk-B64P2D5A.js → chunk-MUZFQKGQ.js} +82 -184
- package/dist/cli.js +2825 -1406
- package/dist/config.cjs +91 -44
- package/dist/config.d.cts +4 -2
- package/dist/config.d.ts +4 -2
- package/dist/config.js +84 -37
- package/dist/fixture.cjs +5 -5
- package/dist/fixture.d.cts +2 -2
- package/dist/fixture.d.ts +2 -2
- package/dist/fixture.js +3 -3
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +110 -22
- package/dist/index.d.ts +110 -22
- package/dist/index.js +1 -1
- package/dist/perf-api-Rm1h1O_-.d.cts +12 -0
- package/dist/perf-api-Rm1h1O_-.d.ts +12 -0
- package/dist/reporter.cjs +5184 -1207
- package/dist/reporter.js +2029 -245
- package/dist/test.cjs +4 -4
- package/dist/test.js +3 -3
- package/package.json +3 -1
- package/schemas/common.schema.json +2 -2
- package/schemas/config.schema.json +57 -21
- package/schemas/outcome.schema.json +1 -1
- package/schemas/run-report.schema.json +534 -19
- package/schemas/samples.schema.json +4 -39
- package/schemas/thresholds.schema.json +1 -1
- package/dist/chunk-3CLCMD2Q.js +0 -3411
- package/dist/chunk-4SFI55HF.cjs +0 -319
- package/dist/chunk-HBGADXLP.js +0 -254
- package/dist/perf-api-V4PeHVE0.d.cts +0 -22
- package/dist/perf-api-V4PeHVE0.d.ts +0 -22
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://pkg.invalid/schemas/samples.schema.json",
|
|
4
4
|
"title": "Sample batch",
|
|
5
|
-
"description": "Raw samples collected during one test execution, attached to the test result as the '
|
|
5
|
+
"description": "Raw samples collected during one test execution, attached to the test result as the 'pw-perf-samples' attachment (ADR-0003). In perf mode every test in a measured project gets this attachment, even when it is empty (05-REQ-15). Written by the collector, read by the reporter. Test metadata is not included; the reporter adds it from TestCase/TestResult.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"additionalProperties": false,
|
|
8
|
-
"required": ["schemaVersion", "collector", "requests", "
|
|
8
|
+
"required": ["schemaVersion", "collector", "requests", "diagnostics"],
|
|
9
9
|
"properties": {
|
|
10
|
-
"schemaVersion": {"const":
|
|
10
|
+
"schemaVersion": {"const": 2},
|
|
11
11
|
"collector": {
|
|
12
12
|
"description": "Collector that produced the batch.",
|
|
13
13
|
"type": "object",
|
|
@@ -31,13 +31,8 @@
|
|
|
31
31
|
"type": "array",
|
|
32
32
|
"items": {"$ref": "#/$defs/requestSample"}
|
|
33
33
|
},
|
|
34
|
-
"custom": {
|
|
35
|
-
"description": "Custom measurement samples in the order they finished.",
|
|
36
|
-
"type": "array",
|
|
37
|
-
"items": {"$ref": "#/$defs/customSample"}
|
|
38
|
-
},
|
|
39
34
|
"diagnostics": {
|
|
40
|
-
"description": "Collector
|
|
35
|
+
"description": "Collector diagnostics caught during the test (01-REQ-13, 05 §9). Repeated issues are collapsed using 'count'. The reporter turns every diagnostic into an entry in 'warnings' (09-REQ-23); none of them is a tool error.",
|
|
41
36
|
"type": "array",
|
|
42
37
|
"items": {"$ref": "common.schema.json#/$defs/issue"}
|
|
43
38
|
}
|
|
@@ -134,36 +129,6 @@
|
|
|
134
129
|
}
|
|
135
130
|
}
|
|
136
131
|
]
|
|
137
|
-
},
|
|
138
|
-
"customSample": {
|
|
139
|
-
"description": "One custom measurement (06).",
|
|
140
|
-
"type": "object",
|
|
141
|
-
"additionalProperties": false,
|
|
142
|
-
"required": ["name", "outcome", "duration", "endTime"],
|
|
143
|
-
"properties": {
|
|
144
|
-
"name": {
|
|
145
|
-
"description": "Measurement name given by the user (06-REQ-03): 1–200 characters, no leading or trailing whitespace, no control characters.",
|
|
146
|
-
"type": "string",
|
|
147
|
-
"minLength": 1,
|
|
148
|
-
"maxLength": 200,
|
|
149
|
-
"pattern": "^[^\\s\\u0000-\\u001F\\u007F](?:[^\\u0000-\\u001F\\u007F]*[^\\s\\u0000-\\u001F\\u007F])?$"
|
|
150
|
-
},
|
|
151
|
-
"outcome": {
|
|
152
|
-
"description": "ok: finished normally; error: the measured function threw; unfinished: started but never ended before test end. Meaning of each outcome for statistics: 06, 08.",
|
|
153
|
-
"enum": ["ok", "error", "unfinished"]
|
|
154
|
-
},
|
|
155
|
-
"duration": {
|
|
156
|
-
"description": "Measured duration (performance.now()). Null for unfinished.",
|
|
157
|
-
"$ref": "common.schema.json#/$defs/msOrNull"
|
|
158
|
-
},
|
|
159
|
-
"endTime": {
|
|
160
|
-
"description": "Wall-clock end time. Null for unfinished.",
|
|
161
|
-
"oneOf": [{"$ref": "common.schema.json#/$defs/epochMs"}, {"type": "null"}]
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
"if": {"properties": {"outcome": {"const": "unfinished"}}},
|
|
165
|
-
"then": {"properties": {"duration": {"type": "null"}, "endTime": {"type": "null"}}},
|
|
166
|
-
"else": {"properties": {"duration": {"type": "number"}, "endTime": {"type": "integer"}}}
|
|
167
132
|
}
|
|
168
133
|
}
|
|
169
134
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"additionalProperties": false,
|
|
8
8
|
"required": ["schemaVersion", "kind", "generated", "entries"],
|
|
9
9
|
"properties": {
|
|
10
|
-
"schemaVersion": {"const":
|
|
10
|
+
"schemaVersion": {"const": 2},
|
|
11
11
|
"kind": {"$ref": "common.schema.json#/$defs/kind"},
|
|
12
12
|
"generated": {
|
|
13
13
|
"description": "How the file was derived. Null for a file written entirely by hand. Contains no wall-clock time of generation, so deriving twice from the same report gives identical files (S-04).",
|