Skip to content

Commit

Permalink
explain how Test::Mojo handles environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 26, 2014
1 parent 3c3e2a9 commit 2d46474
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/Command/test.pm
Expand Up @@ -35,9 +35,9 @@ Mojolicious::Command::test - Test command
Usage: APPLICATION test [OPTIONS] [TESTS]
./myapp.pl test -v
./myapp.pl test
./myapp.pl test t/foo.t
./myapp.pl test t/foo/*.t
./myapp.pl test -v t/foo/*.t
Options:
-v, --verbose Print verbose debug information to STDERR.
Expand Down
10 changes: 9 additions & 1 deletion lib/Test/Mojo.pm
Expand Up @@ -425,7 +425,15 @@ Test::Mojo - Testing Mojo!
=head1 DESCRIPTION
L<Test::Mojo> is a test user agent based on L<Mojo::UserAgent>, it is usually
used together with L<Test::More> to test L<Mojolicious> applications.
used together with L<Test::More> to test L<Mojolicious> applications. Just run
your tests with the command L<Mojolicious::Command::test>.
$ ./myapp.pl test t/foo.t
$ ./myapp.pl test -v t/foo.t
If it is not already defined, the C<MOJO_LOG_LEVEL> environment variable will
be set to C<debug> or C<fatal>, depending on the value of the
C<HARNESS_IS_VERBOSE> environment variable.
=head1 ATTRIBUTES
Expand Down

0 comments on commit 2d46474

Please sign in to comment.