obmarg / ex_unit_fixtures

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

Pattern matching & guards on fixtures #9

Closed obmarg closed 8 years ago

obmarg commented 8 years ago

It might be nice if fixtures could do pattern matching on their dependencies. This would be particularly useful for fixtures that depend on the test context, but could maybe be useful for other dependencies (particularly if we introduce parameterised fixtures).

Not sure precisely how the implementation would work mind you, may be complex.

obmarg commented 8 years ago

36 could take care of/vastly simplify this.

obmarg commented 8 years ago

41 made this possible by defining a separate function and registering it with register_fixture.