aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-01-15 16:31:53 +0100
committerArthurHoaro <arthur@hoa.ro>2017-03-06 21:11:18 +0100
commit6c7d68645409cfad3858b5f252f5a49b148e3b53 (patch)
treefd81f0a21240ad42ee0c00a4b41d11f7149ef33e /Makefile
parent52b503105d389d1796698114573ff618b2ad34a2 (diff)
downloadShaarli-6c7d68645409cfad3858b5f252f5a49b148e3b53.tar.gz
Shaarli-6c7d68645409cfad3858b5f252f5a49b148e3b53.tar.zst
Shaarli-6c7d68645409cfad3858b5f252f5a49b148e3b53.zip
Run languages tests using PHPUnit test suites
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f3065b77..1d8a73a2 100644
--- a/Makefile
+++ b/Makefile
@@ -124,8 +124,20 @@ test:
124 @echo "-------" 124 @echo "-------"
125 @echo "PHPUNIT" 125 @echo "PHPUNIT"
126 @echo "-------" 126 @echo "-------"
127 @mkdir -p sandbox 127 @mkdir -p sandbox coverage
128 @$(BIN)/phpunit tests 128 @$(BIN)/phpunit --coverage-php coverage/main.cov --testsuite unit-tests
129
130locale_test_%:
131 @UT_LOCALE=$*.utf8 \
132 $(BIN)/phpunit \
133 --coverage-php coverage/$(firstword $(subst _, ,$*)).cov \
134 --bootstrap tests/languages/bootstrap.php \
135 --testsuite language-$(firstword $(subst _, ,$*))
136
137all_tests: test locale_test_de_DE locale_test_en_US locale_test_fr_FR
138 @$(BIN)/phpcov merge --html coverage coverage
139 @# --text doesn't work with phpunit 4.* (v5 requires PHP 5.6)
140 @#$(BIN)/phpcov merge --text coverage/txt coverage
129 141
130## 142##
131# Custom release archive generation 143# Custom release archive generation