@@ -6,6 +6,7 @@ const { template } = require('../utils')
66
77const event = require ( '../event' )
88const output = require ( '../output' )
9+ const Codecept = require ( '../codecept' )
910
1011const 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