liip / liip/LiipFunctionalTestBundle

make it possible to reuse modifed DB instances across e2e test requests

Open
#138 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

move-to-fixtures-repository
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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.