liip / liip/LiipFunctionalTestBundle
make it possible to reuse modifed DB instances across e2e test requests
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 648
- Forks
- 179
- PR merge metrics
- No merged PRs in 30d
Description
Currently, when doing e2e tests as in #136, every requests gets a new fresh SQLite instance. It would be good, if one good play scenarios with multiple requests where later requests see the changes done by earlier requests.
This could be implemented with two additional GET parameters:
- _dbsession=some_session_name
- _dbsessionend
When the _dbsession parameter is present than an SQLite db instance with this name is either created or reused.
When the _dbsessionend parameter is also present than the SQLite db instance with this name will be deleted at the end of the request. This might not be that important?
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 e2e test setup described in #136 and locate the entry point that creates a fresh SQLite instance for each request. Trace how GET parameters are handled, then define completion as named _dbsession requests reusing the same instance and _dbsessionend removing it at the end of a request.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, sqlite, symfony
- Domain
- database, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100