obmarg / ex_unit_fixtures

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

Minor improvements in specifying fixtures for tests #35

Closed obmarg closed 8 years ago

obmarg commented 8 years ago

Could accept a single fixture in addition to a list of fixtures:

@tag fixtures: :a_fixture

Could also modify the documentation to recommend sigils of some sort:

@tag fixtures: ~w(a_fixture another_fixture)a

Or some other sigil assuming there's a suitable one.

obmarg commented 8 years ago

Could also be nice to convert strings to atoms in the fixture list, so that forgetting the a on the end of ~w(some fixtures)a doesn't become a problem