Have the PhpUnit plugin reports an explicit error when no test are configured.
Closes #711
This commit is contained in:
parent
481f8d7d4c
commit
b766af7682
1 changed files with 5 additions and 0 deletions
|
|
@ -142,6 +142,11 @@ class PhpUnit implements PHPCI\Plugin, PHPCI\ZeroConfigPlugin
|
|||
*/
|
||||
public function execute()
|
||||
{
|
||||
if (empty($this->xmlConfigFile) && empty($this->directory)) {
|
||||
$this->phpci->logFailure('Neither configuration file nor test directory found.');
|
||||
return false;
|
||||
}
|
||||
|
||||
$success = true;
|
||||
|
||||
$this->phpci->logExecOutput(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue