Skip to content

Commit

Permalink
Simple usage docs for the Test::Class Asset.pm and a utility for running
Browse files Browse the repository at this point in the history
tests for individual classes.
  • Loading branch information
scottwalters committed Aug 17, 2010
1 parent 11ac13c commit 66ead77
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
16 changes: 16 additions & 0 deletions t/tests/Test/WebGUI/Asset.pm
Expand Up @@ -21,6 +21,22 @@ use WebGUI::Test;
use WebGUI::Utility;
use Data::Dumper;

=head1 NAME
t/test/tests/WebGUI/Asset.pm
=head2 USAGE
Run all tests:
perl /data/WebGUI/t/run_asset.t
Run one test:
perl /data/WebGUI/t/tests/Test/WebGUI/run_some_assets.pl Test::WebGUI::Asset::Template
=cut

# XXXX fix the Test(n) numbers to match reality

sub constructorExtras {
Expand Down
17 changes: 17 additions & 0 deletions t/tests/Test/WebGUI/run_some_assets.pl
@@ -0,0 +1,17 @@
#!/usr/bin/perl

use strict;
use warnings;

if($ARGV[0] eq '-h' or $ARGV[0] eq '--help') {
die "$0: eg, $0 Test::WebGUI::Asset::Template";
}

my $package = shift @ARGV or die "specify Test:: package";

use lib '/data/WebGUI/t/lib';
use Test::Class::Load '/data/WebGUI/t/tests/';

$package->new->runtests();


0 comments on commit 66ead77

Please sign in to comment.