Git Product home page Git Product logo

ffixture's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ I work @ Plantura Garden
  • ๐ŸŒฑ Iโ€™m currently learning Rust
  • ๐Ÿค” Iโ€™m looking for help making vue-browser-acl ready for Vue 3
  • ๐Ÿ’ฌ Ask me about php, rust, go, elm, svelte, vue, react, git, vim
  • ๐Ÿ“ซ How to reach me: [email protected]

Also, please โ€ฆ

Buy Me a Coffee at ko-fi.com

Michael's github stats

wakatime

ffixture's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

ffixture's Issues

Lazy loading

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": <?php echo $this->setKey("amazon.de", 1); ?>
}

pages.json

[
{
   "page_id" : 1
   "shop_id": <?php echo $this->key("shops", "amazon.de"); ?>
}
]

Recording seeding/filling

We are currently using this to provide a base dataset for our unit tests. For some tests we need very diverse data which is hard to create and manage, so I'm thinking to add seeding like functionality where you can add partial specifications and then have the class fill in the missing parts based on the schema.

It could be a compact format like this one inspired by zen-coding:

products*3>offerings[price:10..20]*3

or something more verbose using nested arrays.

I can provide more examples on request.

Do you find this useful?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.