obmarg / ex_unit_fixtures

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

Add fixture modules. #7

Closed obmarg closed 8 years ago

obmarg commented 8 years ago

This PR adds the concept of a "fixture module". Fixtures that are declared in a fixture module can be imported into other modules via the use macro.

A fixture module is created via use ExUnitFixtures.FixtureModule inside a module. This allows it to be used itself.

For more details, see the documentation in ExUnit.FixtureModule.