aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/TestAppProve.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-10-11 12:21:29 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-10-13 19:15:46 +0100
commit3872c39f5426165c3abfe397d15dd2a63f731e26 (patch)
tree5e5db4d634abc8b40f25c905c19f0eb41698fa75 /perllib/FixMyStreet/TestAppProve.pm
parent9fc69a31cda118948e3714bc7f4fff9d0a3ca84e (diff)
Default run-tests with no arguments to run all.
Diffstat (limited to 'perllib/FixMyStreet/TestAppProve.pm')
-rw-r--r--perllib/FixMyStreet/TestAppProve.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/TestAppProve.pm b/perllib/FixMyStreet/TestAppProve.pm
index f2584fc33..5298d225f 100644
--- a/perllib/FixMyStreet/TestAppProve.pm
+++ b/perllib/FixMyStreet/TestAppProve.pm
@@ -91,11 +91,11 @@ sub run {
local $ENV{FMS_OVERRIDE_CONFIG} = $config_out;
- if (@ARGV and -e $ARGV[-1]) {
- unshift @ARGV, '--verbose'
- if -f $ARGV[-1];
- # verbose if we have a single file
- }
+ # If no arguments, test everything
+ unshift @ARGV, 't' unless @ARGV;
+
+ # verbose if we have a single file
+ unshift @ARGV, '--verbose' if @ARGV and -f $ARGV[-1];
unshift @ARGV,
'--recurse', # we always want to recurse