.. include:: /Includes.rst.txt .. _task-1791147741: =================================================== Task: Give every test class its own SQLite database =================================================== 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_.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 ====== 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. .. index:: Database, package:adsum-testing