Skip to content

Commit

Permalink
mention that tests are not supposed to pass right away in growing guide
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Mar 9, 2014
1 parent fe71e15 commit ad0233b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions lib/Mojolicious/Guides/Growing.pod
Expand Up @@ -161,7 +161,9 @@ organized CPAN distribution to maximize maintainability.
+- example # Template directory for "Example" controller
+- welcome.html.ep # Template for "welcome" action

Both application skeletons can be automatically generated.
Both application skeletons can be automatically generated with the commands
L<Mojolicious::Command::generate::lite_app> and
L<Mojolicious::Command::generate::app>.

$ mojo generate lite_app myapp.pl
$ mojo generate app MyApp
Expand Down Expand Up @@ -314,14 +316,15 @@ on L<Mojo::DOM>.

done_testing();

From now on you can always check your progress by running these unit tests
against your application.
Your application won't pass these tests, but from now on you can use them to
check your progress with the command L<Mojolicious::Command::test>.

$ ./myapp.pl test
$ ./myapp.pl test t/login.t
$ ./myapp.pl test -v t/login.t

Or perform quick requests right from the command line.
Or perform quick requests right from the command line with
L<Mojolicious::Command::get>.

$ ./myapp.pl get /
Wrong username or password.
Expand Down Expand Up @@ -487,7 +490,7 @@ possibilities.

All templates and static files inlined in the C<DATA> section can be
automatically turned into separate files in the C<templates> and C<public>
directories.
directories with the command L<Mojolicious::Command::inflate>.

$ ./myapp.pl inflate

Expand Down

0 comments on commit ad0233b

Please sign in to comment.