obmarg / ex_unit_fixtures

A library for defining modular dependencies (fixtures) for ExUnit tests.
MIT License
13 stars 5 forks source link

A loader for fixture modules. #5

Closed obmarg closed 8 years ago

obmarg commented 8 years ago

It could be nice to provide a function that calls Code.load_file for all the fixture modules in a project, possibly based on path globs. Something like the auto-loading of conftest.py in py.test.

obmarg commented 8 years ago

2 features in particular I'd like this to have:

  1. Actually call Code.load_file on fixture files. Maybe just by looking for files based on a glob.
  2. Slightly more indepth - automatically use any fixture modules that are relevant to a file, much like the auto-loading of conftest.py files in py.test.

Ideally it'd be possible to use 1 without 2.