From a15b46cbabdd75c8405145a8f9f1ebdbfb6ede9b Mon Sep 17 00:00:00 2001 From: Pavel Dohnal Date: Tue, 22 Aug 2017 09:34:34 +0200 Subject: [PATCH] Fix Code coverage reporting [MAILPOET-1064] --- RoboFile.php | 2 +- codeception.unit.yml | 22 ---------------------- tests/_support/NoGuy.php | 26 ++++++++++++++++++++++++++ 3 files changed, 27 insertions(+), 23 deletions(-) create mode 100644 tests/_support/NoGuy.php diff --git a/RoboFile.php b/RoboFile.php index 33b4590cc9..23b03e7ad5 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -168,7 +168,7 @@ class RoboFile extends \Robo\Tasks { $this->loadEnv(); $this->_exec('vendor/bin/codecept build -c codeception.unit.yml'); $command = join(' ', array( - 'vendor/bin/codecept run -c codeception.unit.yml ', + 'vendor/bin/codecept run unit -c codeception.unit.yml ', (($opts['file']) ? $opts['file'] : ''), '--coverage', ($opts['xml']) ? '--coverage-xml' : '--coverage-html' diff --git a/codeception.unit.yml b/codeception.unit.yml index b566bd83f4..cc77bde89f 100644 --- a/codeception.unit.yml +++ b/codeception.unit.yml @@ -21,28 +21,6 @@ modules: user: '' password: '' 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: enabled: true whitelist: diff --git a/tests/_support/NoGuy.php b/tests/_support/NoGuy.php new file mode 100644 index 0000000000..c16761a53e --- /dev/null +++ b/tests/_support/NoGuy.php @@ -0,0 +1,26 @@ +