This repository has been archived by the owner on Nov 19, 2023. It is now read-only.
Releases: KazuCocoa/ex_parameterized
Releases · KazuCocoa/ex_parameterized
1.0.2: Merge pull request #3 from KazuCocoa/add_elixir1.2.0
improve test message
1.0.1
Fix typo in library name.
So, please update your library...
Before
ex_parametarized
After
ex_parameterized
- Fix
mix.ex
- Update
use ExUnit.Parametarized
touse ExUnit.Parameterized
in tests.
1.0.0
0.4.1
0.4.0
Support callback.
defmodule MyExample.Test do
use ExUnit.Case, async: true
use ExUnit.Parametarized
setup do
{:ok, [value: 1]}
end
# support Callback as `context`
test_with_params "add params with context", context,
fn (a, b, expected) ->
assert a + b == expected
end do
[
{context[:value], 2, 3}
]
end
end
0.3.1
0.3.0
Support providing a description for each params as a key.
test_with_params "add description for each params",
fn (a, b, expected) ->
str = a <> " and " <> b
assert str == expected
end do
[
"description for param1": {"dog", "cats", "dog and cats"},
"description for param2": {"hello", "world", "hello and world"}
]
end