Skip to content

Commit 6e820df

Browse files
Nils LangnerNils Langner
authored andcommitted
Added new debug output
1 parent 415a475 commit 6e820df

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

module/VisualCeptionReporter.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public function __construct($config)
3131

3232
private function init()
3333
{
34+
$this->debug("Initializing VisualCeptionReportt");
35+
3436
$this->logFile = \Codeception\Configuration::logDir() . 'vcresult.html';
3537

3638
if (array_key_exists('templateVars', $this->config)) {
@@ -42,8 +44,6 @@ private function init()
4244
} else {
4345
$this->templateFile = __DIR__ . "/report/template.php";
4446
}
45-
46-
4747
}
4848

4949
public function _beforeSuite()
@@ -53,6 +53,8 @@ public function _beforeSuite()
5353
}
5454

5555
$this->referenceImageDir = $this->getModule("VisualCeption")->getReferenceImageDir();
56+
57+
$this->debug( "VisualCeptionReporter: templateFile = " . $this->templateFile );
5658
}
5759

5860
public function _afterSuite()
@@ -67,6 +69,7 @@ public function _afterSuite()
6769
$reportContent = ob_get_contents();
6870
ob_clean();
6971

72+
$this->debug("Trying to store file (".$this->logFile.")");
7073
file_put_contents($this->logFile, $reportContent);
7174
}
7275

0 commit comments

Comments
 (0)