obmarg / ex_unit_fixtures

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

Avoid un-used variables when depending on fixtures w/ side effects. #24

Closed obmarg closed 8 years ago

obmarg commented 8 years ago

Sometimes you might want to depend on a fixture that has side-effects, but you don't actually need to use that fixture in your code. Currently if you do this, you'll get a compilation warning saying a variable is un-used.

It might be nice to provide a work-around for this. Either:

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.