You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EUnit is already using regexps to enumerate functions (as funs) based on regexps, so it should be easy to make this a utility function for anyone to use. It is particularly useful for "with"-tests (abstract test functions). Right now you need to list these by hand, as in:
foo_test_() ->
{setup,
fun new_connection/0,
fun close_connection/1,
{with,
[fun test_util:foo_test/1,
fun test_util:bar_test/1,
fun test_util:baz_test/1
]}
}.
It would be nicer to just use an enumerator for the with-body.
The text was updated successfully, but these errors were encountered:
EUnit is already using regexps to enumerate functions (as funs) based on regexps, so it should be easy to make this a utility function for anyone to use. It is particularly useful for "with"-tests (abstract test functions). Right now you need to list these by hand, as in:
It would be nicer to just use an enumerator for the with-body.
The text was updated successfully, but these errors were encountered: