he5gsw
Last Updated: February 25, 2016
·
53
· beatrichartz
Img 9621

Require a Directory of Elixir files shorthand

E.g. if you want to require test helpers from a directory:

Enum.each(Path.wildcard(Path.expand("./test/helpers/**/*.ex")), &Code.require_file/1)

might come in handy.

Say Thanks
Respond