liip / liip/LiipFunctionalTestBundle

Make this bundle usable for browser end-to-end tests

Open
#132 2 comments 1 reaction 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.