Commits on Source (4)
-
Camille Simiand authored
Codeception will help us write unit, integrational, functional and acceptance testing. To run codeception tests: php vendor/bin/codecept run To run phpunit tests: php ./vendor/bin/phpunit
-
Camille Simiand authored
- php-cs-fixer - phpstan - unit tests (phpunit) For now, scripts are running to check only on src/ directory To run the CI script: `composer run ci`
Showing
- codeception.yml 13 additions, 0 deletionscodeception.yml
- composer.json 12 additions, 1 deletioncomposer.json
- composer.lock 1061 additions, 2 deletionscomposer.lock
- symfony.lock 72 additions, 0 deletionssymfony.lock
- tests/_data/.gitignore 0 additions, 0 deletionstests/_data/.gitignore
- tests/_output/.gitignore 2 additions, 0 deletionstests/_output/.gitignore
- tests/_support/AcceptanceTester.php 26 additions, 0 deletionstests/_support/AcceptanceTester.php
- tests/_support/FunctionalTester.php 26 additions, 0 deletionstests/_support/FunctionalTester.php
- tests/_support/Helper/Acceptance.php 10 additions, 0 deletionstests/_support/Helper/Acceptance.php
- tests/_support/Helper/Functional.php 10 additions, 0 deletionstests/_support/Helper/Functional.php
- tests/_support/Helper/Unit.php 10 additions, 0 deletionstests/_support/Helper/Unit.php
- tests/_support/UnitTester.php 26 additions, 0 deletionstests/_support/UnitTester.php
- tests/_support/_generated/.gitignore 2 additions, 0 deletionstests/_support/_generated/.gitignore
- tests/acceptance.suite.yml 12 additions, 0 deletionstests/acceptance.suite.yml
- tests/acceptance/.gitignore 0 additions, 0 deletionstests/acceptance/.gitignore
- tests/functional.suite.yml 17 additions, 0 deletionstests/functional.suite.yml
- tests/functional/.gitignore 0 additions, 0 deletionstests/functional/.gitignore
- tests/unit.suite.yml 9 additions, 0 deletionstests/unit.suite.yml
- tests/unit/.gitignore 0 additions, 0 deletionstests/unit/.gitignore
codeception.yml
0 → 100644
... | ... | @@ -44,6 +44,9 @@ |
"twig/twig": "^2.12|^3.0" | ||
}, | ||
"require-dev": { | ||
"codeception/module-asserts": "^1.3", | ||
"codeception/module-phpbrowser": "^1.0", | ||
"codeception/module-symfony": "^2.0", | ||
"phpstan/extension-installer": "^1.1", | ||
"phpstan/phpstan": "^1.2", | ||
"phpstan/phpstan-doctrine": "^1.0", | ||
... | ... | @@ -89,7 +92,15 @@ |
], | ||
"post-update-cmd": [ | ||
"@auto-scripts" | ||
] | ||
], | ||
"ci": [ | ||
"@php-cs-fixer", | ||
"@phpstan", | ||
"@unit-tests" | ||
], | ||
"php-cs-fixer": "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix src/", | ||
"phpstan": "vendor/bin/phpstan analyse src/", | ||
"unit-tests": "php ./vendor/bin/phpunit" | ||
}, | ||
"conflict": { | ||
"symfony/symfony": "*" | ||
... | ... |
This diff is collapsed.
tests/_data/.gitignore
0 → 100644
tests/_output/.gitignore
0 → 100644
tests/_support/AcceptanceTester.php
0 → 100644
tests/_support/FunctionalTester.php
0 → 100644
tests/_support/Helper/Acceptance.php
0 → 100644
tests/_support/Helper/Functional.php
0 → 100644
tests/_support/Helper/Unit.php
0 → 100644
tests/_support/UnitTester.php
0 → 100644
tests/_support/_generated/.gitignore
0 → 100644
tests/acceptance.suite.yml
0 → 100644
tests/acceptance/.gitignore
0 → 100644
tests/functional.suite.yml
0 → 100644
tests/functional/.gitignore
0 → 100644
tests/unit.suite.yml
0 → 100644
tests/unit/.gitignore
0 → 100644