Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.

Releases: KazuCocoa/ex_parameterized

1.0.2: Merge pull request #3 from KazuCocoa/add_elixir1.2.0

04 Jan 14:01
Compare
Choose a tag to compare

1.0.1

23 Nov 13:04
Compare
Choose a tag to compare

Fix typo in library name.
So, please update your library...

Before

After


  1. Fix mix.ex
  2. Update use ExUnit.Parametarized to use ExUnit.Parameterized in tests.

1.0.0

07 Nov 06:21
Compare
Choose a tag to compare

bump up from 0.4.1.
No changes affect behaviour from 0.4.1.

0.4.1

06 Oct 15:16
Compare
Choose a tag to compare

update docs

0.4.0

02 Oct 23:38
Compare
Choose a tag to compare

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

20 Sep 03:07
Compare
Choose a tag to compare

Fix error when only two params

0.3.0

17 Sep 17:13
Compare
Choose a tag to compare

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

0.2.0

09 Sep 22:33
Compare
Choose a tag to compare

Use line number as suffix of parametarized test cases.

0.1.0

09 Sep 15:47
Compare
Choose a tag to compare

initial release