aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTeddy Wing2018-03-18 18:25:38 +0100
committerTeddy Wing2018-03-18 18:25:38 +0100
commit975b9d397076e26ba205a71cac4a5db190d873f9 (patch)
tree0b70faf26f61c71a01d97f9041412a7f43ecc2b0 /Makefile
parent4132e288ba6af49cf726d71785ec1f2ff9f39270 (diff)
downloadgit-branch-list-975b9d397076e26ba205a71cac4a5db190d873f9.tar.bz2
t/: Move `$BIN` variable to module
In order to be able to easily reuse the `$BIN` variable we created in the test for the `clear` sub-command, move it to a Perl module that can be included in other tests. Add the `t/` directory to the include path when running `prove` to ensure that `bin.pm` can be found and included. Thanks to these resources for explaining Perl modules: https://perlmaven.com/how-to-create-a-perl-module-for-code-reuse https://stackoverflow.com/questions/23899121/perl-declare-and-export-variables-from-a-module/23900384#23900384 https://stackoverflow.com/questions/17931981/what-is-isa-in-perl/17932340#17932340
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2cab678..e67850b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
.PHONY: test
test:
- prove -v
+ prove -v -I./t