wdio-performancetotal-service
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -25,3 +25,3 @@ "use strict"; | ||
catch (err) { | ||
console.log(`performancetotal error: writeFile failed: ${err}`); | ||
console.log(`Performance-Total error: writeFile failed: ${err}`); | ||
} | ||
@@ -36,3 +36,3 @@ }); | ||
catch (err) { | ||
console.log(`performancetotal error: appendFile failed: ${err}`); | ||
console.log(`Performance-Total error: appendFile failed: ${err}`); | ||
} | ||
@@ -48,3 +48,3 @@ }); | ||
catch (err) { | ||
console.log(`performancetotal error: readFile failed: ${err}`); | ||
console.log(`Performance-Total error: readFile failed: ${err}`); | ||
} | ||
@@ -61,3 +61,3 @@ const stringArray = data.split("\n"); | ||
catch (err) { | ||
console.log(`performance-total error: can't create dir: ${err}`); | ||
console.log(`Performance-Total error: can't create dir: ${dirPath}: ${err}`); | ||
} | ||
@@ -64,0 +64,0 @@ }); |
@@ -51,3 +51,3 @@ "use strict"; | ||
const picked = this._performanceResults.map(({ name, averageTime, sem, repeats, minValue, maxValue }) => ({ name, averageTime, sem, repeats, minValue, maxValue })); | ||
console.log("\nperformancetotal results:\n"); | ||
console.log("\nPerformance-Total results:\n"); | ||
console.table(picked); | ||
@@ -54,0 +54,0 @@ this.serializeData(saveDataFilePath); |
@@ -82,5 +82,4 @@ "use strict"; | ||
const root = (_a = require.main) === null || _a === void 0 ? void 0 : _a.paths[0].split('node_modules')[0].slice(0, -1); | ||
console.log(`Root path = ${root}`); | ||
if (!root) { | ||
console.log("Can't get root folder"); | ||
console.log("Performance-Total error: Can't get root folder"); | ||
return ""; | ||
@@ -87,0 +86,0 @@ } |
{ | ||
"name": "wdio-performancetotal-service", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "WebdriverIO service for analyzing test flow performance", | ||
@@ -5,0 +5,0 @@ "main": "build/app.js", |
34058
703