Skip to content

Commit 29262b1

Browse files
Copilotkobenguyent
andcommitted
Changes before error encountered
Co-authored-by: kobenguyent <[email protected]>
1 parent d7c491f commit 29262b1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/plugin/htmlReporter.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const { template } = require('../utils')
66

77
const event = require('../event')
88
const output = require('../output')
9+
const Codecept = require('../codecept')
910

1011
const defaultConfig = {
1112
output: global.output_dir || './output',
@@ -311,7 +312,7 @@ module.exports = function (config) {
311312
}
312313
}
313314

314-
function generateHtmlReport(data, config) {
315+
async function generateHtmlReport(data, config) {
315316
const reportPath = path.join(reportDir, config.reportFileName)
316317

317318
// Load history if available
@@ -327,6 +328,9 @@ module.exports = function (config) {
327328
}
328329
}
329330

331+
// Get system information
332+
const systemInfo = await getSystemInfo()
333+
330334
const html = template(getHtmlTemplate(), {
331335
title: 'CodeceptJS Test Report',
332336
timestamp: data.endTime.toISOString(),
@@ -342,6 +346,9 @@ module.exports = function (config) {
342346
showRetries: config.showRetries ? 'block' : 'none',
343347
showHistory: config.keepHistory && history.length > 0 ? 'block' : 'none',
344348
failuresDisplay: data.failures && data.failures.length > 0 ? 'block' : 'none',
349+
codeceptVersion: Codecept.version(),
350+
systemInfoHtml: generateSystemInfoHtml(systemInfo),
351+
codeceptLogo: getCodeceptLogo(),
345352
})
346353

347354
fs.writeFileSync(reportPath, html)

0 commit comments

Comments
 (0)