Skip to content

Commit

Permalink
Merge pull request #9 from sebastianneubert/master
Browse files Browse the repository at this point in the history
update codeception to leankoala notification
  • Loading branch information
phmLabs committed May 6, 2019
2 parents 871134b + cb31078 commit fbf1964
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/KoalamonReporter.php
@@ -1,4 +1,5 @@
<?php

namespace Koalamon\Extension;

use Codeception\Event\StepEvent;
Expand All @@ -8,7 +9,7 @@
use Codeception\Extension;
use GuzzleHttp\Client;
use Koalamon\Client\Reporter\Event;
use Koalamon\Client\Reporter\Reporter;
use Koalamon\Client\Reporter\WebhookReporter;

class KoalamonReporter extends Extension
{
Expand Down Expand Up @@ -134,7 +135,7 @@ public function suite()
$koalamonServer = $this->config['server'];
}

$reporter = new Reporter('', $this->getApiKey(), new Client(), $koalamonServer);
$reporter = new WebhookReporter($this->getApiKey(), new Client(), $koalamonServer);

$url = $this->getUrl();

Expand All @@ -156,7 +157,7 @@ public function suite()
$status = Event::STATUS_FAILURE;
} else {
$status = Event::STATUS_SUCCESS;
$message = '';
$message = 'All Codeception tests in collection "' . $testCollection . '" succeeded.';
}

$system = $this->getSystem();
Expand Down

0 comments on commit fbf1964

Please sign in to comment.