canaltp / nmm-portal-bundle
NmmPortalBundle
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 4 484
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 34
Forks: 7
Open Issues: 2
Type:symfony-bundle
Requires
- canaltp/navitia: ~1.2
- canaltp/navitia-profiler-bundle: ~0.0
- canaltp/sam-core-bundle: ^1.6
- symfony/security: ~2.6
- symfony/translation: ~2.6
Requires (Dev)
- phpunit/phpunit: 4.5.*
- squizlabs/php_codesniffer: ^2.0
- dev-master
- 1.7.22
- 1.7.21
- 1.7.20
- 1.7.19
- 1.7.18
- 1.7.17
- 1.7.16
- 1.7.15
- 1.7.14
- 1.7.13
- 1.7.12
- 1.7.11
- 1.7.10
- 1.7.9
- 1.7.8
- 1.7.7
- 1.7.6
- 1.7.5
- 1.7.4
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.0
- 1.5.1
- 1.5.0
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.1
- 1.3.0
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.1
- 1.0.0
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-task-bot-3109-update-user-github
- dev-fix-bot-2137-update-dependencies
- dev-task-bot-2046-add-jenkinsfile-rebase
- dev-feature-bot-444-dispatch_event_on_customer_delete-v2
- dev-feature-bot-434-remove_client
- dev-oauth-server
This package is not auto-updated.
Last update: 2022-03-30 15:31:57 UTC
README
This bundle is part of Navitia Mobility Manager. It inherits SamCoreBundle and contains:
- Some entities more (Perimeter, NavitiaEntity, NavitiaToken)
- Customer management
How to launch tests
Requirements
- Docker
- Build image and dependency with the command :
mkdir -p ${HOME}/.config/composer
_UID=$(id -u) GID=$(id -g) docker-compose -f docker-compose.test.yml build --no-cache --force-rm --pull nmm-portal-app
rm -f composer.lock
_UID=$(id -u) GID=$(id -g) docker-compose -f docker-compose.test.yml run --rm --no-deps nmm-portal-app composer install --no-interaction --prefer-dist
Checkstyle
Launch with :
_UID=$(id -u) GID=$(id -g) docker-compose -f docker-compose.test.yml run --rm --no-deps nmm-portal-app ./vendor/bin/phpcs -n --standard=PSR2 --encoding=utf-8 --extensions=php --ignore=vendor/* --ignore=nmm_portal_functional_test/* --report=checkstyle --report-file=checkstyle-result.xml .
You could check the result file :
cat checkstyle-result.xml
PhpUnit
Launch with :
rm -rf docs
_UID=$(id -u) GID=$(id -g) docker-compose -f docker-compose.test.yml run --rm --no-deps nmm-portal-app ./vendor/bin/phpunit --testsuite=NmmPortal --log-junit=docs/unit/logs/junit.xml --coverage-html=docs/unit/CodeCoverage --coverage-clover=docs/unit/CodeCoverage/coverage.xml
You could check the result file :
cat docs/unit/logs/junit.xml
And also the coverage file :
- Html :
docs/unit/CodeCoverage/index.html
- Xml :
docs/unit/CodeCoverage/coverage.xml
Behat
For behat test, you need to have access to the repository NMM. If not don't do this tests.
Launch with :
rm -rf nmm_portal_functional_test
git clone git@github.com:CanalTP/NMM.git nmm_portal_functional_test
_UID=$(id -u) GID=$(id -g) docker-compose -f docker-compose.test.yml run -e ghprbPullId=${ghprbPullId} -e sha1=$(git rev-parse HEAD) nmm-portal-app
The result file should be :
nmm_portal_functional_test/behat/nmm_portal.xml
If some error occured, you should be able to get some screenshot in :
nmm_portal_functional_test/web/uploads
License
This bundle is released under the GPL-3.0 License