Skip to content
Products
Apps
Docs
Log in
Log in
Sign up
Sign up
Products
Apps
Docs
Docs
Docs
CODE
On this page

Code Quality

How to check UNA 15 code before a pull request: PHPUnit Units and Integration suites, the test accounts and seed script, what UNA CI and the Database migrations check run, NEO lint and typecheck, bx_log logs, debug mode and caches.
Android
iOS
Web
Core
~15.0
Source
Copy Page
Note
composer install
composer test
docker compose exec -w /opt/una php ./plugins/bin/phpunit -c tests/phpunit.xml --testsuite Units
docker compose exec -w /opt/una php ./plugins/bin/phpunit -c tests/phpunit.xml --testsuite Integration
docker compose exec -w /opt/una php ./plugins/bin/phpunit -c tests/phpunit.xml --filter TestName
cp tests/.env.example tests/.env
php tests/seed.php
yarn typecheck
yarn lint
bx_log('sys_db', $sMessage, BX_LOG_ERR);
14d
On this page
I want toRun the testsIn Docker ComposeTest suitesWrite a testWhat CI checksNEO checksStatic analysisBrowser testsLogsDebug modeCache while you testProfilerTipsTroubleshootingFor developersGitHub SourcesRelated
Introduction
Getting Started
Configuration
Apps
CODE
Developer Architecture
Code Convention
Code Quality
Directory Structure
How to Add an App
Storage System
Common Mistakes
Payment Provider Integration
Module API
iOS Client
NEO Developer
Android Client
Web Client
Contributing
REST API
Analytics Developer
Auth
Connect
docker compose exec -w /opt/una php ./plugins/bin/phpunit -c tests/phpunit.xml --testsuite Units
docker compose exec -w /opt/una php ./plugins/bin/phpunit -c tests/phpunit.xml --testsuite Integration
docker compose exec -w /opt/una php ./plugins/bin/phpunit -c tests/phpunit.xml --filter TestName