Skip to content
Products
Docs
Pricing
Blog
Log In
Sign Up
Docs
Docs
CODE
On this page

Code Quality

How to run UNA 15 PHPUnit unit and integration tests, what CI checks on every pull request, and how to use bx_log logs and debug mode.
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
yarn typecheck
yarn lint
bx_log('sys_db', $sMessage, BX_LOG_ERR);
2d
On this page
Run the testsIn Docker ComposeTest suitesWrite a testWhat CI checksNEO checksStatic analysisBrowser testsLogsDebug modeCache while you testProfilerTroubleshootingRelated
Auto
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