WebPublisher is templates engine + articles/pages render component for Superdesk WebPublisher. Thanks to Web Renderer, templators can design themes and work with templates engine.
Full documentation can be found here: http://web-renderer.readthedocs.org/
Add 127.0.0.1 webrenderer.dev
to /etc/hosts
. Mac users use the ip of your virtualbox (e.g. boot2docker ip
).
docker-compose build
docker-compose up
Create database in your PostgreSQL server (it's required) manually. Remember to put database config into parameters.yml.
Then execute the following commands in terminal:
php app/console doctrine:schema:update --force
php app/console doctrine:phpcr:repository:init
For unit tests use PHPSpec tests, for functional tests use PHPUnit and Behat for integration.
How to run tests?
php bin/phpunit -c app/ # PHPUnit
php bin/phpspec run # PHPSpec
To see current code tests coverage run:
php bin/phpspec run --config=spec/phpspec-cov-html.yml
php bin/phpunit -c app/ --coverage-text