[report] Auto detect platform for cucumber report
let reporter = require('cucumber-html-reporter');
let fse = require('fs-extra');
let path = require('path');
+const os = require('os');
// define paths for cucumber test framework
let testPath = path.resolve('e2e/');
@@ -58,12 +59,9 @@ exports.config = {
storeScreenShots: false,
launchReport: false,
metadata: {
- "App Version":"0.3.2",
- "Test Environment": "STAGING",
- "Browser": "Chrome 54.0.2840.98",
- "Platform": "Windows 10",
- "Parallel": "Scenarios",
- "Executed": "Remote"
+ "Browser": "Chrome",
+ "Platform": `${os.platform()} ${os.release()} (${os.arch()})`,
+ "Parallel": "no",
}
};
reporter.generate(options);
