obmarg / ex_unit_fixtures

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

Reduce reliance on macros & module attributes. #42

Open obmarg opened 8 years ago

obmarg commented 8 years ago

It might be nice to reduce the reliance on module attributes and macros throughout ExUnitFixtures.

At the moment users need to use ExUnitFixtures/use ExUnitFixtures.FixtureModule initially, which sets up some macro hooks and module attributes. It might be nicer to reduce the need for that.

Calling register_fixture could actually put the fixture information into an external store (an Agent?) and that could potentially deal with most of the stuff we use module hooks for just now.