diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-01-15 16:31:53 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2017-03-06 21:11:18 +0100 |
commit | 6c7d68645409cfad3858b5f252f5a49b148e3b53 (patch) | |
tree | fd81f0a21240ad42ee0c00a4b41d11f7149ef33e /Makefile | |
parent | 52b503105d389d1796698114573ff618b2ad34a2 (diff) | |
download | Shaarli-6c7d68645409cfad3858b5f252f5a49b148e3b53.tar.gz Shaarli-6c7d68645409cfad3858b5f252f5a49b148e3b53.tar.zst Shaarli-6c7d68645409cfad3858b5f252f5a49b148e3b53.zip |
Run languages tests using PHPUnit test suites
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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 | |||
130 | locale_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 | |||
137 | all_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 |