Test fixes
authorColeman Watts <coleman@civicrm.org>
Mon, 16 Sep 2019 12:09:05 +0000 (08:09 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 17 Sep 2019 03:11:24 +0000 (23:11 -0400)
karma.conf.js
tools/scripts/phpunit

index 2915dc7814fe5020a03f613abe5ce5eaf923edc5..1710c33fdc590a2ebc269766c99e930cde51ba5f 100644 (file)
@@ -21,6 +21,7 @@ module.exports = function(config) {
     autoWatch: true,
     browsers: ['PhantomJS'],
     exclude: [
+      'ang/api4Explorer/Explorer.js'
     ],
     files: [
       'bower_components/phantomjs-polyfill/bind-polyfill.js',
index 671c4d7440d1db693bf3cf10e732649efd912a69..2e682bc0db51253824050b4d71b2a6a467c760d8 100755 (executable)
@@ -50,7 +50,7 @@ array_shift($argv);
 // Convert class names to file names
 $CIVICRM_UF = 'UnitTests';
 foreach ($argv as $k => $v) {
-  if (preg_match('/^(CRM_|api_v3_|EnvTest|WebTest_|E2E_)/', $v)) {
+  if (preg_match('/^(CRM_|api_v3_|api_v4_|EnvTest|WebTest_|E2E_)/', $v)) {
     $argv[$k] = 'tests/phpunit/' . strtr($v, '_', '/') . '.php';
   }
   elseif (preg_match('/^Civi\\\\/', $v)) {