mblarsen/fFixture — Issue #4: Lazy loading
Author: mblarsen
Created: 2012-03-02 09:56:27+00:00
State: open
Labels: enhancement

At the moment fixtures are loaded all at once, this is hardly a problem for smalish data sets and a few unit tests.

Test speed could be improved a lot by only loading the relevant fixtures.

But besides that there is another advantage. By postponing loading things like named keys can be introduced:

shops.json

{
"shop_id": setKey("amazon.de", 1); ?>
}

pages.json

[
{
"page_id" : 1
"shop_id": key("shops", "amazon.de"); ?>
}
]