ExUnit - Generate test cases dynamically inside a describe block

There is no such feature in ExUnit, I am a trying to write something like that, but for now what you can do is:

for value <- YourModule.generate_test_data() do
  test "check if #{value} is frindricated" do
    assert frindricated?(unquote(value))
  end
end

Alternatively you can do:

setup_all do
  {:ok, values: YourModule.generate_test_data()}
end

test "check if all values are frindricated", %{values: values} do
  assert Enum.all?(values, &frindricated?/1)
end

Or you can use test tags for that:

@tag values: YourModule.generate_test_data()
test "check if all values are frindricated", %{values: values} do
  assert Enum.all?(values, &frindricated?/1)
end