Bundle a git repository for testing, add the required glue to use it.
[catagits/Gitalist.git] / t / 01app.t
index 977fe57..67f7992 100644 (file)
--- a/t/01app.t
+++ b/t/01app.t
@@ -5,4 +5,14 @@ use Test::More tests => 2;
 
 BEGIN { use_ok 'Catalyst::Test', 'Gitalist' }
 
+# Full tests are only run if the APP_TEST env var is set.
+# This is needed to load the test configuration.
+diag("*** SKIPPING app tests.
+*** Set APP_TEST for the tests to run fully") if !$ENV{APP_TEST};
+SKIP: {
+  skip "Set APP_TEST for the tests to run fully",
+    1 if !$ENV{APP_TEST};
+
 ok( request('/')->is_success, 'Request should succeed' );
+
+} # CLose APP_TEST skip