froth-webdriverio-framework 3.0.21 → 3.0.22
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/config/commonconfig.js +17 -4
- package/package.json +1 -1
package/config/commonconfig.js
CHANGED
|
@@ -117,17 +117,17 @@ const commonconfig = {
|
|
|
117
117
|
console.log('All tests are done.' + result);
|
|
118
118
|
|
|
119
119
|
|
|
120
|
-
|
|
120
|
+
// const totalDefinedTests = exports.config.specs.length; // Total test files/specs defined
|
|
121
121
|
const executedTests = result.finished; // Tests that were executed
|
|
122
122
|
const passedTests = result.passed;
|
|
123
123
|
const failedTests = result.failed;
|
|
124
|
-
const notRunTests = totalDefinedTests - executedTests;
|
|
124
|
+
//const notRunTests = totalDefinedTests - executedTests;
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
// console.log(`Total Defined Tests: ${totalDefinedTests}`);
|
|
127
127
|
console.log(`Executed Tests: ${executedTests}`);
|
|
128
128
|
console.log(`Passed Tests: ${passedTests}`);
|
|
129
129
|
console.log(`Failed Tests: ${failedTests}`);
|
|
130
|
-
|
|
130
|
+
// console.log(`Tests Not Run: ${notRunTests}`);
|
|
131
131
|
|
|
132
132
|
BUFFER.setItem("RESULT_DATA", result);
|
|
133
133
|
console.log("result data :" + BUFFER.getItem("RESULT_DATA"))
|
|
@@ -159,6 +159,19 @@ const commonconfig = {
|
|
|
159
159
|
// Perform any cleanup or post-test actions here
|
|
160
160
|
},
|
|
161
161
|
|
|
162
|
+
onComplete: async function (exitCode, config, capabilities, results) {
|
|
163
|
+
console.log('This is the onComplete hook');
|
|
164
|
+
// Perform any cleanup or post-test actions here
|
|
165
|
+
const { finished, specs, passed, failed } = results;
|
|
166
|
+
|
|
167
|
+
console.log('--- Test Results Summary ---');
|
|
168
|
+
console.log(`Total Spec Files: ${specs.length}`);
|
|
169
|
+
console.log(`Passed: ${passed}`);
|
|
170
|
+
console.log(`Failed: ${failed}`);
|
|
171
|
+
console.log(`Total Time: ${Math.round(finished / 1000)} seconds`);
|
|
172
|
+
console.log('----------------------------');
|
|
173
|
+
}
|
|
174
|
+
|
|
162
175
|
};
|
|
163
176
|
|
|
164
177
|
async function secondsToTime(secs) {
|