Aleksandr Trofimov 89e117cb18 AI search: judge models (TypeSafe Jev) and natural language search - #5721 - make it secure hace 2 semanas
..
integration aeb5cc1c9f Integration tests #5694 hace 1 mes
units 89e117cb18 AI search: judge models (TypeSafe Jev) and natural language search - #5721 - make it secure hace 2 semanas
.env.example fae693a793 Integration tests #5694 hace 1 mes
README.md ebda1812e7 Integration tests #5694 - separate integration tests hace 1 mes
bootstrap.php 2537bc2e7a Performance: OPcache sizing, asset compression/caching, cover transcoder, disk-read transcoding (#5704) hace 2 semanas
phpcpd.sh 59557c182d phpunit tests reorganization #5669 hace 1 mes
phpunit.xml fae693a793 Integration tests #5694 hace 1 mes

README.md

ABOUT

Unit tests for UNA.

INSTALLATION

  1. Get composer.

http://getcomposer.org/doc/00-intro.md#installation-nix

  1. Install dependences.

Run the following from the script root folder (includes test tools from require-dev):

composer.phar install

or:

composer install

Alternatively:

phing prepare

Production / package installs should omit test tools:

composer install --no-dev

USING

Run the following command from the script root folder after installation:

./plugins/bin/phpunit -c tests/phpunit.xml

or:

composer test

Alternatively:

phing test

JUnit report: logs/junit.xml.

Unit tests only:

phing test-units

or:

composer test-units

JUnit report: logs/junit-units.xml.

Integration tests only:

phing test-integration

or:

composer test-integration

JUnit report: logs/junit-integration.xml.

Integration tests read tests/.env when present (cp tests/.env.example tests/.env). Without that file they use installer defaults. Tests skip an account that is not installed.