fast-api-tester 1.0.3 ā 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apiEngine.d.ts +27 -2
- package/dist/apiEngine.d.ts.map +1 -1
- package/dist/apiEngine.js +129 -7
- package/dist/apiEngine.js.map +1 -1
- package/package.json +1 -1
package/dist/apiEngine.d.ts
CHANGED
|
@@ -11,6 +11,16 @@ export interface ApiResponseData<T = unknown> {
|
|
|
11
11
|
body: T;
|
|
12
12
|
latencyMs: number;
|
|
13
13
|
}
|
|
14
|
+
export interface TestExecutionRecord {
|
|
15
|
+
method: HttpMethod;
|
|
16
|
+
endpoint: string;
|
|
17
|
+
statusCode: number;
|
|
18
|
+
latencyMs: number;
|
|
19
|
+
slaLimitMs?: number;
|
|
20
|
+
passed: boolean;
|
|
21
|
+
errorMsg?: string;
|
|
22
|
+
timestamp: string;
|
|
23
|
+
}
|
|
14
24
|
/**
|
|
15
25
|
* Fluent API Response class supporting chained SLA assertions
|
|
16
26
|
*/
|
|
@@ -19,6 +29,7 @@ export declare class ApiResponse<T = unknown> implements ApiResponseData<T> {
|
|
|
19
29
|
headers: Record<string, string | string[] | undefined>;
|
|
20
30
|
body: T;
|
|
21
31
|
latencyMs: number;
|
|
32
|
+
lastExecutionRecord?: TestExecutionRecord;
|
|
22
33
|
constructor(data: ApiResponseData<T>);
|
|
23
34
|
/**
|
|
24
35
|
* Asserts that the response latency was strictly under the specified SLA limit (in ms).
|
|
@@ -27,11 +38,14 @@ export declare class ApiResponse<T = unknown> implements ApiResponseData<T> {
|
|
|
27
38
|
expectLatencyUnder(maxLatencyMs: number): this;
|
|
28
39
|
}
|
|
29
40
|
/**
|
|
30
|
-
* Fluent API Test Client
|
|
41
|
+
* Fluent API Test Client with Automatic HTML Reporting
|
|
31
42
|
*/
|
|
32
43
|
export declare class ApiEngine {
|
|
33
44
|
private baseUrl;
|
|
34
45
|
private defaultHeaders;
|
|
46
|
+
private records;
|
|
47
|
+
private reportOutputPath;
|
|
48
|
+
private autoReportEnabled;
|
|
35
49
|
/**
|
|
36
50
|
* Set the base URL for subsequent calls
|
|
37
51
|
*/
|
|
@@ -40,6 +54,13 @@ export declare class ApiEngine {
|
|
|
40
54
|
* Add default headers (e.g., Bearer tokens) across all requests
|
|
41
55
|
*/
|
|
42
56
|
setHeader(key: string, value: string): this;
|
|
57
|
+
/**
|
|
58
|
+
* Configure HTML reporting output path or disable it
|
|
59
|
+
*/
|
|
60
|
+
configureReport(options: {
|
|
61
|
+
enabled?: boolean;
|
|
62
|
+
outputPath?: string;
|
|
63
|
+
}): this;
|
|
43
64
|
get<T = unknown>(path: string, options?: Omit<RequestOptions, 'body'>): Promise<ApiResponse<T>>;
|
|
44
65
|
post<T = unknown>(path: string, body?: unknown, options?: Omit<RequestOptions, 'body'>): Promise<ApiResponse<T>>;
|
|
45
66
|
put<T = unknown>(path: string, body?: unknown, options?: Omit<RequestOptions, 'body'>): Promise<ApiResponse<T>>;
|
|
@@ -50,7 +71,11 @@ export declare class ApiEngine {
|
|
|
50
71
|
*/
|
|
51
72
|
request<T = unknown>(method: HttpMethod, path: string, options?: RequestOptions): Promise<ApiResponse<T>>;
|
|
52
73
|
/**
|
|
53
|
-
*
|
|
74
|
+
* Generates visual HTML report from collected test execution records
|
|
75
|
+
*/
|
|
76
|
+
private generateHtmlReport;
|
|
77
|
+
/**
|
|
78
|
+
* Gracefully close connection pools & write auto-generated HTML report
|
|
54
79
|
*/
|
|
55
80
|
destroy(): Promise<void>;
|
|
56
81
|
}
|
package/dist/apiEngine.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiEngine.d.ts","sourceRoot":"","sources":["../src/apiEngine.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"apiEngine.d.ts","sourceRoot":"","sources":["../src/apiEngine.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,MAAM,GA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AAE,MAAM,CAAC,2BAE9E;IAED;;OAEG;IACU,OAAO,CAAC,CAAC,GAAG,OAAO,EAC9B,MAAM,EAAE,UAAU,EAClB,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAmFzB;IAED;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAqF1B;;OAEG;IACU,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAQpC;CACF"}
|
package/dist/apiEngine.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Pool } from 'undici';
|
|
2
2
|
import { URL } from 'node:url';
|
|
3
|
+
import fs from 'node:fs';
|
|
4
|
+
import path from 'node:path';
|
|
3
5
|
/**
|
|
4
6
|
* Fluent API Response class supporting chained SLA assertions
|
|
5
7
|
*/
|
|
@@ -8,6 +10,8 @@ export class ApiResponse {
|
|
|
8
10
|
headers;
|
|
9
11
|
body;
|
|
10
12
|
latencyMs;
|
|
13
|
+
// Internal reference for auto-recording SLA assertion outcomes
|
|
14
|
+
lastExecutionRecord;
|
|
11
15
|
constructor(data) {
|
|
12
16
|
this.statusCode = data.statusCode;
|
|
13
17
|
this.headers = data.headers;
|
|
@@ -19,8 +23,16 @@ export class ApiResponse {
|
|
|
19
23
|
* @throws Error if latency meets or exceeds the target SLA.
|
|
20
24
|
*/
|
|
21
25
|
expectLatencyUnder(maxLatencyMs) {
|
|
26
|
+
if (this.lastExecutionRecord) {
|
|
27
|
+
this.lastExecutionRecord.slaLimitMs = maxLatencyMs;
|
|
28
|
+
}
|
|
22
29
|
if (this.latencyMs >= maxLatencyMs) {
|
|
23
|
-
|
|
30
|
+
const errorMsg = `[SLA Violation] Expected response latency to be under ${maxLatencyMs}ms, but took ${this.latencyMs.toFixed(2)}ms.`;
|
|
31
|
+
if (this.lastExecutionRecord) {
|
|
32
|
+
this.lastExecutionRecord.passed = false;
|
|
33
|
+
this.lastExecutionRecord.errorMsg = errorMsg;
|
|
34
|
+
}
|
|
35
|
+
throw new Error(errorMsg);
|
|
24
36
|
}
|
|
25
37
|
return this;
|
|
26
38
|
}
|
|
@@ -33,8 +45,8 @@ function getOrCreatePool(origin) {
|
|
|
33
45
|
let pool = poolRegistry.get(origin);
|
|
34
46
|
if (!pool) {
|
|
35
47
|
pool = new Pool(origin, {
|
|
36
|
-
connections: 50,
|
|
37
|
-
keepAliveTimeout: 60_000,
|
|
48
|
+
connections: 50,
|
|
49
|
+
keepAliveTimeout: 60_000,
|
|
38
50
|
pipelining: 1,
|
|
39
51
|
});
|
|
40
52
|
poolRegistry.set(origin, pool);
|
|
@@ -42,13 +54,16 @@ function getOrCreatePool(origin) {
|
|
|
42
54
|
return pool;
|
|
43
55
|
}
|
|
44
56
|
/**
|
|
45
|
-
* Fluent API Test Client
|
|
57
|
+
* Fluent API Test Client with Automatic HTML Reporting
|
|
46
58
|
*/
|
|
47
59
|
export class ApiEngine {
|
|
48
60
|
baseUrl = '';
|
|
49
61
|
defaultHeaders = {
|
|
50
62
|
'accept': 'application/json',
|
|
51
63
|
};
|
|
64
|
+
records = [];
|
|
65
|
+
reportOutputPath = 'test-report.html';
|
|
66
|
+
autoReportEnabled = true;
|
|
52
67
|
/**
|
|
53
68
|
* Set the base URL for subsequent calls
|
|
54
69
|
*/
|
|
@@ -63,6 +78,16 @@ export class ApiEngine {
|
|
|
63
78
|
this.defaultHeaders[key.toLowerCase()] = value;
|
|
64
79
|
return this;
|
|
65
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* Configure HTML reporting output path or disable it
|
|
83
|
+
*/
|
|
84
|
+
configureReport(options) {
|
|
85
|
+
if (options.enabled !== undefined)
|
|
86
|
+
this.autoReportEnabled = options.enabled;
|
|
87
|
+
if (options.outputPath)
|
|
88
|
+
this.reportOutputPath = options.outputPath;
|
|
89
|
+
return this;
|
|
90
|
+
}
|
|
66
91
|
// --- HTTP Verb Shortcuts ---
|
|
67
92
|
get(path, options) {
|
|
68
93
|
return this.request('GET', path, options);
|
|
@@ -132,18 +157,115 @@ export class ApiEngine {
|
|
|
132
157
|
catch {
|
|
133
158
|
parsedBody = rawText;
|
|
134
159
|
}
|
|
160
|
+
const formattedLatency = Number(latencyMs.toFixed(2));
|
|
161
|
+
const passed = response.statusCode >= 200 && response.statusCode < 400;
|
|
162
|
+
// Track execution for auto report
|
|
163
|
+
const record = {
|
|
164
|
+
method,
|
|
165
|
+
endpoint: `${targetUrl.pathname}${targetUrl.search}`,
|
|
166
|
+
statusCode: response.statusCode,
|
|
167
|
+
latencyMs: formattedLatency,
|
|
168
|
+
passed,
|
|
169
|
+
timestamp: new Date().toLocaleTimeString(),
|
|
170
|
+
};
|
|
171
|
+
this.records.push(record);
|
|
135
172
|
// Wrap output in the fluent ApiResponse class instance
|
|
136
|
-
|
|
173
|
+
const apiResponse = new ApiResponse({
|
|
137
174
|
statusCode: response.statusCode,
|
|
138
175
|
headers: response.headers,
|
|
139
176
|
body: parsedBody,
|
|
140
|
-
latencyMs:
|
|
177
|
+
latencyMs: formattedLatency,
|
|
141
178
|
});
|
|
179
|
+
apiResponse.lastExecutionRecord = record;
|
|
180
|
+
return apiResponse;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Generates visual HTML report from collected test execution records
|
|
184
|
+
*/
|
|
185
|
+
generateHtmlReport() {
|
|
186
|
+
if (this.records.length === 0)
|
|
187
|
+
return;
|
|
188
|
+
const total = this.records.length;
|
|
189
|
+
const passed = this.records.filter((r) => r.passed).length;
|
|
190
|
+
const failed = total - passed;
|
|
191
|
+
const avgLatency = (this.records.reduce((acc, r) => acc + r.latencyMs, 0) / total).toFixed(1);
|
|
192
|
+
const tableRows = this.records
|
|
193
|
+
.map((r) => `
|
|
194
|
+
<tr>
|
|
195
|
+
<td><span class="badge badge-${r.method.toLowerCase()}">${r.method}</span></td>
|
|
196
|
+
<td><code>${r.endpoint}</code></td>
|
|
197
|
+
<td><strong>${r.statusCode}</strong></td>
|
|
198
|
+
<td>${r.latencyMs} ms</td>
|
|
199
|
+
<td>${r.slaLimitMs ? `< ${r.slaLimitMs} ms` : 'N/A'}</td>
|
|
200
|
+
<td>
|
|
201
|
+
<span class="status-tag ${r.passed ? 'status-pass' : 'status-fail'}">
|
|
202
|
+
${r.passed ? 'PASSED' : 'FAILED'}
|
|
203
|
+
</span>
|
|
204
|
+
${r.errorMsg ? `<div class="error-msg">${r.errorMsg}</div>` : ''}
|
|
205
|
+
</td>
|
|
206
|
+
</tr>`)
|
|
207
|
+
.join('');
|
|
208
|
+
const html = `<!DOCTYPE html>
|
|
209
|
+
<html lang="en">
|
|
210
|
+
<head>
|
|
211
|
+
<meta charset="UTF-8">
|
|
212
|
+
<title>fast-api-tester Execution Summary</title>
|
|
213
|
+
<style>
|
|
214
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
215
|
+
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f8fafc; color: #1e293b; padding: 30px; margin: 0; }
|
|
216
|
+
.header { background: #0f172a; color: #fff; padding: 24px 28px; border-radius: 8px; margin-bottom: 24px; }
|
|
217
|
+
.header h1 { margin: 0 0 6px 0; font-size: 20pt; color: #38bdf8; }
|
|
218
|
+
.header p { margin: 0; color: #94a3b8; font-size: 10pt; }
|
|
219
|
+
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
|
|
220
|
+
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 18px; }
|
|
221
|
+
.card-label { font-size: 8pt; text-transform: uppercase; color: #64748b; font-weight: 600; margin-bottom: 4px; }
|
|
222
|
+
.card-value { font-size: 20pt; font-weight: 700; color: #0f172a; }
|
|
223
|
+
.card-value.pass { color: #16a34a; } .card-value.fail { color: #dc2626; } .card-value.sla { color: #2563eb; }
|
|
224
|
+
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; border: 1px solid #e2e8f0; overflow: hidden; }
|
|
225
|
+
th { background: #f1f5f9; color: #475569; text-align: left; padding: 12px 14px; font-size: 9pt; text-transform: uppercase; border-bottom: 1px solid #e2e8f0; }
|
|
226
|
+
td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; font-size: 9.5pt; vertical-align: top; }
|
|
227
|
+
.badge { padding: 3px 8px; border-radius: 4px; font-size: 8pt; font-weight: 700; text-transform: uppercase; }
|
|
228
|
+
.badge-get { background: #e0f2fe; color: #0369a1; }
|
|
229
|
+
.badge-post { background: #dcfce7; color: #15803d; }
|
|
230
|
+
.badge-put { background: #fef3c7; color: #b45309; }
|
|
231
|
+
.badge-patch { background: #f3e8ff; color: #6b21a8; }
|
|
232
|
+
.badge-delete { background: #fee2e2; color: #b91c1c; }
|
|
233
|
+
.status-tag { font-weight: 700; padding: 3px 8px; border-radius: 4px; font-size: 8pt; display: inline-block; }
|
|
234
|
+
.status-pass { background: #dcfce7; color: #166534; }
|
|
235
|
+
.status-fail { background: #fee2e2; color: #991b1b; }
|
|
236
|
+
.error-msg { margin-top: 6px; font-family: monospace; font-size: 8.5pt; color: #dc2626; background: #fef2f2; padding: 6px 8px; border-radius: 4px; }
|
|
237
|
+
</style>
|
|
238
|
+
</head>
|
|
239
|
+
<body>
|
|
240
|
+
<div class="header">
|
|
241
|
+
<h1>ā” fast-api-tester Execution Summary</h1>
|
|
242
|
+
<p>Generated on ${new Date().toLocaleString()}</p>
|
|
243
|
+
</div>
|
|
244
|
+
<div class="summary-grid">
|
|
245
|
+
<div class="card"><div class="card-label">Total Requests</div><div class="card-value">${total}</div></div>
|
|
246
|
+
<div class="card"><div class="card-label">Passed</div><div class="card-value pass">${passed}</div></div>
|
|
247
|
+
<div class="card"><div class="card-label">Failed</div><div class="card-value fail">${failed}</div></div>
|
|
248
|
+
<div class="card"><div class="card-label">Avg Latency</div><div class="card-value sla">${avgLatency} ms</div></div>
|
|
249
|
+
</div>
|
|
250
|
+
<table>
|
|
251
|
+
<thead>
|
|
252
|
+
<tr><th>Method</th><th>Endpoint</th><th>Status</th><th>Latency</th><th>SLA Target</th><th>Result</th></tr>
|
|
253
|
+
</thead>
|
|
254
|
+
<tbody>${tableRows}</tbody>
|
|
255
|
+
</table>
|
|
256
|
+
</body>
|
|
257
|
+
</html>`;
|
|
258
|
+
const fullPath = path.resolve(this.reportOutputPath);
|
|
259
|
+
fs.writeFileSync(fullPath, html, 'utf-8');
|
|
260
|
+
console.log(`\nš Standalone HTML report generated at: ${fullPath}`);
|
|
142
261
|
}
|
|
143
262
|
/**
|
|
144
|
-
* Gracefully close
|
|
263
|
+
* Gracefully close connection pools & write auto-generated HTML report
|
|
145
264
|
*/
|
|
146
265
|
async destroy() {
|
|
266
|
+
if (this.autoReportEnabled) {
|
|
267
|
+
this.generateHtmlReport();
|
|
268
|
+
}
|
|
147
269
|
const closes = Array.from(poolRegistry.values()).map((p) => p.close());
|
|
148
270
|
await Promise.all(closes);
|
|
149
271
|
poolRegistry.clear();
|
package/dist/apiEngine.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiEngine.js","sourceRoot":"","sources":["../src/apiEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"apiEngine.js","sourceRoot":"","sources":["../src/apiEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AA6B7B;;GAEG;AACH,MAAM,OAAO,WAAW;IACf,UAAU,CAAS;IACnB,OAAO,CAAgD;IACvD,IAAI,CAAI;IACR,SAAS,CAAS;IAEzB,+DAA+D;IACxD,mBAAmB,CAAuB;IAEjD,YAAY,IAAwB;QAClC,IAAI,CA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