Fix Code coverage reporting
[MAILPOET-1064]
This commit is contained in:
@ -168,7 +168,7 @@ class RoboFile extends \Robo\Tasks {
|
|||||||
$this->loadEnv();
|
$this->loadEnv();
|
||||||
$this->_exec('vendor/bin/codecept build -c codeception.unit.yml');
|
$this->_exec('vendor/bin/codecept build -c codeception.unit.yml');
|
||||||
$command = join(' ', array(
|
$command = join(' ', array(
|
||||||
'vendor/bin/codecept run -c codeception.unit.yml ',
|
'vendor/bin/codecept run unit -c codeception.unit.yml ',
|
||||||
(($opts['file']) ? $opts['file'] : ''),
|
(($opts['file']) ? $opts['file'] : ''),
|
||||||
'--coverage',
|
'--coverage',
|
||||||
($opts['xml']) ? '--coverage-xml' : '--coverage-html'
|
($opts['xml']) ? '--coverage-xml' : '--coverage-html'
|
||||||
|
@ -21,28 +21,6 @@ modules:
|
|||||||
user: ''
|
user: ''
|
||||||
password: ''
|
password: ''
|
||||||
dump: tests/_data/dump.sql
|
dump: tests/_data/dump.sql
|
||||||
WPLoader:
|
|
||||||
wpRootFolder: /wp-core
|
|
||||||
dbName: wordpress
|
|
||||||
dbHost: mysql
|
|
||||||
dbUser: wordpress
|
|
||||||
dbPassword: wordpress
|
|
||||||
wpDebug: false
|
|
||||||
tablePrefix: wp_
|
|
||||||
domain: wordpress
|
|
||||||
plugins: ['mailpoet/mailpoet.php']
|
|
||||||
activatePlugins: ['mailpoet/mailpoet.php']
|
|
||||||
WPWebDriver:
|
|
||||||
host: chrome
|
|
||||||
url: 'http://wordpress'
|
|
||||||
browser: chrome
|
|
||||||
port: 4444
|
|
||||||
window_size: '1024x768'
|
|
||||||
restart: true
|
|
||||||
wait: 0
|
|
||||||
adminUsername: admin
|
|
||||||
adminPassword: password
|
|
||||||
adminPath: /wp-admin
|
|
||||||
coverage:
|
coverage:
|
||||||
enabled: true
|
enabled: true
|
||||||
whitelist:
|
whitelist:
|
||||||
|
26
tests/_support/NoGuy.php
Normal file
26
tests/_support/NoGuy.php
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Inherited Methods
|
||||||
|
* @method void wantToTest($text)
|
||||||
|
* @method void wantTo($text)
|
||||||
|
* @method void execute($callable)
|
||||||
|
* @method void expectTo($prediction)
|
||||||
|
* @method void expect($prediction)
|
||||||
|
* @method void amGoingTo($argumentation)
|
||||||
|
* @method void am($role)
|
||||||
|
* @method void lookForwardTo($achieveValue)
|
||||||
|
* @method void comment($description)
|
||||||
|
* @method \Codeception\Lib\Friend haveFriend($name, $actorClass = NULL)
|
||||||
|
*
|
||||||
|
* @SuppressWarnings(PHPMD)
|
||||||
|
*/
|
||||||
|
class NoGuy extends \Codeception\Actor
|
||||||
|
{
|
||||||
|
use _generated\NoGuyActions;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Define custom actions here
|
||||||
|
*/
|
||||||
|
}
|
Reference in New Issue
Block a user