|
|
1 год назад | |
|---|---|---|
| .. | ||
| Factory | 1 год назад | |
| OrganizationFixtures.php | 1 год назад | |
| PersonFixtures.php | 1 год назад | |
| readme.md | 1 год назад | |
Pour regénérer le SQL de la base de données de test, suivez ces étapes :
mysql --user=root --password=mysql660 --host=127.0.0.1 --port=3306
DROP DATABASE IF EXISTS opentalent_test; EXIT;
mysqldump --user=root --password=mysql660 --host=localhost --port=3306 --default-character-set=utf8 --single-transaction=TRUE --no-data --skip-triggers "opentalent" | sed 's/ AUTO_INCREMENT=[0-9]*//g' > opentalent_test.sql
mysql --user=root --password=mysql660 --host=127.0.0.1 --port=3306
CREATE DATABASE opentalent_test;
EXIT;
mysql --user=root --password=mysql660 --host=127.0.0.1 --port=3306 -D opentalent_test < opentalent_test.sql
php bin/console ot:setup:env --host=ci ls -l .env.local
Détecter les erreurs dans les tests (phpunit ne les logs pas) :
```bash
find tests/Application -name '*.php' -exec php -l {} \;
2. Dans le docker ap2i :
Regénérer les vues et jouer les fixtures
```bash
bin/console --env=staging doctrine:schema:update
bin/console --env=staging d:f:l
php bin/phpunit
ou mettre le path relatif :
php bin/phpunit tests/Application/Access/AdminAccessTest.php
php bin/phpunit tests/Application/Billing/ResidenceAreaTest.php
php bin/phpunit tests/Application/Cotisation/CotisationTest.php
php bin/phpunit tests/Application/Education/CycleTest.php
php bin/phpunit tests/Application/Education/EducationTimingTest.php
php bin/phpunit tests/Application/Enum/EnumTest.php
php bin/phpunit tests/Application/Mobyt/MobytUserStatusTest.php
php bin/phpunit tests/Application/Organization/ParametersTest.php
php bin/phpunit tests/Application/Organization/SubdomainTest.php
php bin/phpunit tests/Application/Person/PersonTest.php
php bin/phpunit tests/Application/Profile/AccessProfileTest.php
php bin/phpunit tests/Application/Profile/OrganizationProfilesTest.php
php bin/phpunit tests/Application/Public/PublicEventsTest.php
php bin/phpunit tests/Application/Public/PublicStructuresTest.php
php bin/phpunit tests/Application/Utils/GpsCoordinateTest.php
php bin/phpunit tests/Application/Utils/SiretTest.php
// option sms : settings -> id 3600 // cotisation -> network Organization -> cmf