Phoenix command to generate only tests

You might use reflection to avoid missing fields…

AnyStruct.__schema__(:fields)

… as explained in the book Testing Elixir

3 Likes