Skip to content

Commit

Permalink
Update lib/ex_unit/lib/ex_unit/case.ex
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim authored May 29, 2024
1 parent b041556 commit 65cd462
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/ex_unit/lib/ex_unit/case.ex
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,12 @@ defmodule ExUnit.Case do
[parameterize: parameters]
end
Then, in your tests, you can access the parameters as part of the context:
test "starts a registry", %{kind: kind, partitions: partitions} do
...
end
Use parameterized tests with care:
* Abuse of parameterized tests may make your test suite considerably slower
Expand Down

0 comments on commit 65cd462

Please sign in to comment.