make it easier to run js tests

This commit is contained in:
Bernhard Posselt 2013-05-07 18:01:28 +02:00
Родитель 8ee79c729a
Коммит e90e0779f3
2 изменённых файлов: 18 добавлений и 13 удалений

Просмотреть файл

@ -36,17 +36,21 @@ dist: clean
git archive HEAD --format=zip --prefix=$(app_name)/ > $(package_name).zip git archive HEAD --format=zip --prefix=$(app_name)/ > $(package_name).zip
test: unit integration acceptance # tests
test: javascript-tests unit-tests integration-tests acceptance-tests
unit-tests:
unit:
phpunit tests/unit phpunit tests/unit
integration: integration-tests:
phpunit tests/integration phpunit tests/integration
acceptance: acceptance-tests:
cd tests/acceptance; make cd tests/acceptance; make headless
javascript-tests:
cd js; make test

Просмотреть файл

@ -149,23 +149,24 @@ JavaScript
~~~~~~~~~~ ~~~~~~~~~~
For JavaScript tests see :file:`js/README.md` For JavaScript tests see :file:`js/README.md`
PHP
~~~
All tests:: All tests::
make test make test
Unit tests:: PHP Unit tests::
make unit make unit-tests
Integration tests:: Integration tests::
make integration make integration-tests
.. note:: For acceptance tests, a user with the name **test** and password **test** must exist! .. note:: For acceptance tests, a user with the name **test** and password **test** must exist!
Acceptance tests:: Acceptance tests::
make acceptance make acceptance-tests
JavaScript tests::
make javascript-tests