Skip to content

Commit 941267e

Browse files
Nils LangnerNils Langner
authored andcommitted
Added logfile as config param
1 parent 6e820df commit 941267e

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

module/VisualCeptionReporter.php

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
<?php
22
/**
3-
* Created by PhpStorm.
4-
* User: langn
5-
* Date: 02.10.14
6-
* Time: 14:21
7-
*
8-
* /citools/tools/common/php/5.5.9/bin/php codecept.phar
9-
*
10-
* @todo config logfile
113
*
124
*/
135

@@ -31,9 +23,13 @@ public function __construct($config)
3123

3224
private function init()
3325
{
34-
$this->debug("Initializing VisualCeptionReportt");
26+
$this->debug("Initializing VisualCeptionReport");
3527

36-
$this->logFile = \Codeception\Configuration::logDir() . 'vcresult.html';
28+
if (array_key_exists('logFile', $this->config)) {
29+
$this->logFile = $this->config["logFile"];
30+
}else{
31+
$this->logFile = \Codeception\Configuration::logDir() . 'vcresult.html';
32+
}
3733

3834
if (array_key_exists('templateVars', $this->config)) {
3935
$this->templateVars = $this->config["templateVars"];

0 commit comments

Comments
 (0)