aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2015-01-15 14:02:19 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2015-01-19 16:35:36 +0000
commitb203e7907fa4808966521da8e18d9796e28e9b9a (patch)
tree268a49410fd4bfc42e752a8b52c48d537b5b865d /bin
parent2e8df1a5a6610c43e0c1bda15d018fa16738061b (diff)
Rename test-wrapper to run-tests.
As that's what it does; and use it in Travis.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/run-tests (renamed from bin/test-wrapper)14
-rw-r--r--bin/site-specific-install.sh2
2 files changed, 8 insertions, 8 deletions
diff --git a/bin/test-wrapper b/bin/run-tests
index 9cb1791a1..42315e2f2 100755
--- a/bin/test-wrapper
+++ b/bin/run-tests
@@ -10,22 +10,22 @@ use FixMyStreet::TestAppProve;
=head1 NAME
-bin/test-wrapper - spin up a clean database and configuration for tests
+bin/run-tests - spin up a clean database and configuration for tests
=head1 USAGE
- bin/test-wrapper t/ # runs prove -r t/ (recursively, saving state)
- bin/test-wrapper --state=failed # runs just failing tests
+ bin/run-tests t/ # runs prove -r t/ (recursively, saving state)
+ bin/run-tests --state=failed # runs just failing tests
# delete .prove to reset
- bin/test-wrapper t/foo.t # runs with prove -v (single test)
+ bin/run-tests t/foo.t # runs with prove -v (single test)
By default we use conf/general.yml-example as the template, and spin up a fresh
Postgres cluster and database. We can override this by doing:
- bin/test-wrapper --config=general.mycobrand.yml
- bin/test-wrapper --db-config=general.yml # e.g. use your current DB settings
- bin/test-wrapper --all-config=general.yml # e.g. use your current DB settings
+ bin/run-tests --config=general.mycobrand.yml
+ bin/run-tests --db-config=general.yml # e.g. use your current DB settings
+ bin/run-tests --all-config=general.yml # e.g. use your current DB settings
(NB: passing --state=save automagically is experimental, and will be removed if
it turns out to be annoying.)
diff --git a/bin/site-specific-install.sh b/bin/site-specific-install.sh
index 3d01be469..de75d45ae 100644
--- a/bin/site-specific-install.sh
+++ b/bin/site-specific-install.sh
@@ -66,4 +66,4 @@ fi
echo Installation complete - you should now be able to view the site at:
echo http://$HOST/
echo Or you can run the tests by switching to the "'$UNIX_USER'" user and
-echo running: $REPOSITORY/bin/cron-wrapper prove -r t
+echo running: $REPOSITORY/bin/run-tests t