add coverage option in fulltest script and ignore cover_db
Graham Knop [Sun, 23 Jun 2013 01:23:33 +0000 (21:23 -0400)]
.gitignore
maint/fulltest

index e0478d6..3551c15 100644 (file)
@@ -12,6 +12,7 @@
 *#
 .#*
 /Moo-*
+/cover_db/
 
 # yes that's right, distar makes it for us
 /MANIFEST.SKIP
index c41dc11..d02bb51 100755 (executable)
@@ -1,3 +1,17 @@
 #!/bin/sh
 
+while [ "$#" -gt "0" ]; do
+  case $1 in
+    --cover)
+      cover -delete -silent
+      export HARNESS_PERL_SWITCHES='-MDevel::Cover=-ignore,^x?t/,-blib,0'
+      ;;
+    *)
+      echo "Invalid option: $1"
+      exit 1
+      ;;
+    esac
+  shift
+done
+
 prove -l t xt && MOO_XS_DISABLE=1 prove -l t xt