UNPKG

k6-test-framework

Version:

Enterprise-grade load testing solution with k6

11 lines (10 loc) 263 B
// report/customMetrics.js export const CustomMetrics = { trackErrors: (errors) => ({ totalErrors: errors.length, errorTypes: errors.reduce((acc, err) => { acc[err.type] = (acc[err.type] || 0) + 1; return acc; }, {}), }), };