on execute task
  symfony test:coverage
on win xp coverage always 0% as here is prob with path

easiest and ugly fix added, but here must be better solution.

Index: sfTestCoverageTask.class.php
===================================================================
--- sfTestCoverageTask.class.php        (revision 12095)
+++ sfTestCoverageTask.class.php        (working copy)
@@ -68,6 +68,8 @@
     }

     $coveredFiles = $this->getFiles(sfConfig::get('sf_root_dir').'/'.
$arguments['lib_name']);
+    $coveredFiles = str_replace('/', DIRECTORY_SEPARATOR,
$coveredFiles);
+    $coveredFiles = str_replace('\\', DIRECTORY_SEPARATOR,
$coveredFiles);
     $coverage->output($coveredFiles);
   }

on execute same task for folder instead file, it calculate total
coverage incorrectly.
for example we have 2 files 100 lines each.
1-st file covered 70 lines
2-nd file covered 0 lines

expected total coverage: ((70 + 0) / (100 + 100)) * 100 = 35%
but we got 70%
as i understood, it don't load files which wasn't covered at all. as
result missing lines for not covered files = 0 and that's why it
calculte coverage incorrectly.
i didn't found how to fix it. any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to