зеркало из https://github.com/nextcloud/news.git
make it easier to run js tests
This commit is contained in:
Родитель
8ee79c729a
Коммит
e90e0779f3
16
Makefile
16
Makefile
|
@ -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
|
||||||
|
|
||||||
|
|
15
README.rst
15
README.rst
|
@ -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
|
Загрузка…
Ссылка в новой задаче