bredikhin / barrels

Simple DB Fixtures for Sails.js
MIT License
85 stars 34 forks source link

Allows for multiple sets of fixtures per tests. #46

Open robgrimball opened 8 years ago

robgrimball commented 8 years ago

This allows for the sourceFolder to work off of the current working directory so that if you specify it, it will look in the cwd for that sourceFolder, instead of looking at the absolute path of sourceFolder. This way you can instantiate new barrels similar to this:

barrels = new Barrels('./test/fixtures/SomeSpecificTest');

Rather than having to specify the absolute path which can change depending on whether you are running the tests in one environment or another (ie, developer vs CI).

albertpeiro commented 7 years ago

+1 I need this. Why is this not being added? @robgrimball can you add some tests?