<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -12,6 +12,7 @@ Change log for WGDev
  - version command learned the --dist option for outputting the version in version-status format
  - reset command learned --autologon option to automatically set up admin sessions in a web browser
  - Added test prerequisites and resources metadata to Build.PL
+ - Add -D switch for setting WEBGUI_TEST_DEBUG in wgd test.
 
 0.4.0 - Sep 03 2009
  - Full POD coverage of API added</diff>
      <filename>Changes</filename>
    </modified>
    <modified>
      <diff>@@ -17,6 +17,7 @@ sub config_options {
         all|A
         slow|S
         live|L
+        debug|D
         reset:s
         cover|C:s
         coverOptions:s
@@ -53,6 +54,10 @@ sub process {
         ##no critic (RequireLocalizedPunctuationVars)
         $ENV{WEBGUI_LIVE} = 1;
     }
+    if ( $self-&gt;option('debug') ) {
+        ##no critic (RequireLocalizedPunctuationVars)
+        $ENV{WEBGUI_TEST_DEBUG} = 1;
+    }
     local $ENV{HARNESS_PERL_SWITCHES} = $ENV{HARNESS_PERL_SWITCHES};
     my $cover_dir;
     if ( defined $self-&gt;option('cover') ) {
@@ -122,6 +127,14 @@ Includes slow tests by defining CODE_COP, TEST_SYNTAX, and TEST_POD.
 
 Includes live tests by defining WEBGUI_LIVE.
 
+=item C&lt;-D&gt; C&lt;--debug&gt;
+
+After a test, output the number of assets, version tags, users, groups, sessions
+and session scratch variables, to determine when tests leak objects that can interfere
+with downstream tests.
+
+This option is really only useful when passing the --verbose switch through to prove.
+
 =item C&lt;--reset=&gt;
 
 Perform a site reset before running the tests.  The value specified is used</diff>
      <filename>lib/WGDev/Command/Test.pm</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d4a3de3712bf180d9dfc37b645cd493d8b4d544c</id>
    </parent>
  </parents>
  <author>
    <name>Colin Kuskie</name>
    <email>colink@perldreamer.com</email>
  </author>
  <url>http://github.com/haarg/wgdev/commit/9aaf2f83a26fa4d51f8f6745b0e366ad7e89926c</url>
  <id>9aaf2f83a26fa4d51f8f6745b0e366ad7e89926c</id>
  <committed-date>2009-09-21T08:37:41-07:00</committed-date>
  <authored-date>2009-09-21T08:37:41-07:00</authored-date>
  <message>Add -D switch for setting WEBGUI_TEST_DEBUG in wgd test.</message>
  <tree>6a892cd8b25c4fc5ac25a7227b4c086c3497d930</tree>
  <committer>
    <name>Colin Kuskie</name>
    <email>colink@perldreamer.com</email>
  </committer>
</commit>
