Skip to content

Commit 0b887f5

Browse files
author
Nils Langner
committed
Debug mode for tests, debug output in test cases
1 parent b07d114 commit 0b887f5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ before_script:
1111
- cd test/integration/
1212

1313

14-
script: php codecept.phar run
14+
script: php codecept.phar run -d

module/VisualCeption.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ private function init ()
6161
}
6262

6363
if (! is_dir($this->referenceImageDir)) {
64+
$this->debug("Creating directory: $this->referenceImageDir");
6465
mkdir($this->referenceImageDir, 0666, true);
6566
}
6667
}
@@ -116,6 +117,7 @@ private function getScreenshotPath ($identifier)
116117
{
117118
$debugDir = \Codeception\Configuration::logDir() . 'debug/tmp/';
118119
if (! is_dir($debugDir)) {
120+
$this->debug("Creating directory: $debugDir");
119121
mkdir($debugDir, 0666, true);
120122
}
121123
return $debugDir . $this->getScreenshotName($identifier);

0 commit comments

Comments
 (0)