s3cur3/parameterized_test

Feature request: comments within the table

Closed this issue ยท 0 comments

Thanks for the library! ๐Ÿ˜†

For longer parameterized tables it would be helpful if we could embed comments within them as notes to ourselves about the specifics of a row, e.g. with the Elixir comment syntax:

param_test "users can view the post regardless of permission level",
           """
           | permissions |
           |-------------|
           | :admin      |
           | :editor     |
           # Viewers are treated special
           | :viewer     |
           | nil         |
           """,
           %{user: user, permissions: permissions} do
  assert Posts.can_view?(user), "User with #{permissions} permissions should be able to view"
end