liip / liip/LiipFunctionalTestBundle
Make this bundle usable for browser end-to-end tests
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 648
- Forks
- 179
- PR merge metrics
- No merged PRs in 30d
Description
It seems, this bundle is mostly used for tests with PHPUnit and WebTestCase. We want to also do tests in a browser (e.g. via [1][2]). This means we need to include test setup information in the HTTP requests (via Query params?):
- What fixtures to load
- What user to login as
e.g.
```
localhost:8000/someroute?_login=admin&_fixtures=Bamarni\MainBundle\DataFixtures\ORM\LoadData,Me\MyBundle\DataFixtures\ORM\LoadData
```
And we need a listener to do this on KernelEvents::REQUEST(?).
[1] http://angular.github.io/protractor
[2] https://github.com/minkphp
I'll work on this next week unless somebody claims this would be a silly idea. Would you take a PR for this?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the bundle's PHPUnit and WebTestCase setup, then investigate Symfony's KernelEvents::REQUEST listener point. Done should allow browser requests to specify fixtures and a login user through query parameters and apply that test setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, symfony
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100