https://github.com/drupol/foo-bundles-test
https://github.com/drupol/foo-bundles-test
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/drupol/foo-bundles-test
- Owner: drupol
- License: mit
- Created: 2021-04-27T10:23:54.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-28T05:18:59.000Z (about 5 years ago)
- Last Synced: 2025-03-05T11:50:00.034Z (about 1 year ago)
- Language: PHP
- Size: 33.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Foo Bundles
`Foo Bundles` is a proof-of-concept repository containing bundles and their
tests.
4 types of tests are implemented:
- Unit
- Functional
- Application
- Behat
The purpose of this repository is to test the feasibility of having multiple
Symfony bundles into one project (*monorepo*) and be able to test them
individually.
## Usage
1. `composer install`
2. `./vendor/bin/phpunit -c src/Foo/Bundle/TestBundle/phpunit.xml.dist src/Foo/Bundle/TestBundle/`
## Run the tests
### Unit tests
```shell
vendor/bin/phpunit -c src/Foo/Bundle/TestBundle/phpunit.xml.dist src/Foo/Bundle/TestBundle/src/Tests/Unit
```
### Functional tests
```shell
vendor/bin/phpunit -c src/Foo/Bundle/TestBundle/phpunit.xml.dist src/Foo/Bundle/TestBundle/src/Tests/Functional
```
### Integration tests
```shell
vendor/bin/phpunit -c src/Foo/Bundle/TestBundle/phpunit.xml.dist src/Foo/Bundle/TestBundle/src/Tests/Integration
```
### Behat tests
```shell
vendor/bin/behat -c src/Foo/Bundle/TestBundle/behat.yaml.dist
```