liip / liip/LiipTestFixturesBundle

Make this working with in memory sqlite db to make tests faster

Open
#96 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
178
Forks
48
PR merge metrics
No merged PRs in 30d

Description

After setting the sqlite connection to:

```
sqlite:
driver: pdo_sqlite
memory: true
```

it gives troubles saying "undefined index: dbname in Test/WebTestCase.php on line 201", I've tried to hard set that value but in that case the tables are not created within the tests and ever query returns unknown table.

Would be a nice feature to add.

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 with Test/WebTestCase.php at line 201 and trace how the sqlite connection expects the dbname setting. Reproduce the reported in-memory configuration and check how test tables are created. Done means functional tests run with an in-memory sqlite database without undefined-index or unknown-table errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, sqlite
Domain
backend, databases, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.