---
title: "Task: Give every test class its own SQLite database"
manual: "adsum by web-vision"
version: "main"
permalink: "https://docs.typo3.org/permalink/web-vision/adsum-monorepo:task-1791147741@main"
source: "Changelog/1.0.0/Task-1791147741-GiveEveryTestClassItsOwnSqliteDatabase.rst"
rendered: "2026-11-07T02:01:32+00:00"
---

# Task: Give every test class its own SQLite database {#task-1791147741}

## Description {#description}

The functional tests on SQLite shared one database file in `var/`, so two runs at the same time broke each
other. As in TYPO3's testing framework, the migrations now build a template once per run, every test class works on
its own copy (`var/tests/functional-sqlite-dbs/test_<hash>.sqlite`), and `Build/Scripts/runTests.sh` keeps
that directory in memory. The template is built under a lock, ready for PHPUnit's planned parallel execution.

## Impact {#impact}

Functional runs on SQLite can run side by side. Tests that create tables of their own create them in their class's
copy. `.env.test` names the new directory.
