obmarg / ex_unit_fixtures

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

Add auto loading & importing of fixture modules. #10

Closed obmarg closed 8 years ago

obmarg commented 8 years ago

This PR implements a couple of things:

This does introduce a new requirement in client code - clients using fixture modules must call ExUnitFixtures.start from their test_helper.exs file to ensure that the ExUnitFixtures application is started. This is used for registering & resolving fixture modules.

There's probably still some improvements to be made, but seems like a reasonable first pass.

Fixes #5

obmarg commented 8 years ago

Also probably need to update the rest of the documentation to make sure it makes sense after this.