diff --git a/run_scdds_core_tests.m b/run_scdds_core_tests.m
index da696f1455d796022779f52c3d1085c530e642ff..a3f81aceaf75251f28f76b7bbe493c585d7db9d5 100644
--- a/run_scdds_core_tests.m
+++ b/run_scdds_core_tests.m
@@ -104,8 +104,8 @@ if needCOV
       xmlFile = fullfile(projectpath,sprintf('%s_%s_%s_cov.xml',prefix,test_case,suffix));
       reportFormat = matlab.unittest.plugins.codecoverage.CoberturaFormat(xmlFile);
   end
-  p = matlab.unittest.plugins.CodeCoveragePlugin.forFolder({tbxpath,fullfile(tbxpath,'mexm'),testspath},...
-    'IncludingSubfolders',false,'Producing',reportFormat);
+  p = matlab.unittest.plugins.CodeCoveragePlugin.forFolder({tbxpath},...
+    'IncludingSubfolders',true,'Producing',reportFormat);
   runner.addPlugin(p)
 end
 if useparallel && paravail