Popularity
0.5
Declining
Activity
0.0
Stable
2
2
0
Monthly Downloads: 1
Programming language: Elixir
License: Apache License 2.0
Tags:
Testing
setup_tag alternatives and similar packages
Based on the "Testing" category.
Alternatively, view setup_tag alternatives based on common mentions on social networks and blogs.
-
bypass
Bypass provides a quick way to create a custom plug that can be put in place instead of an actual HTTP server to return prebaked responses to client requests. -
mix_test_interactive
Interactive watch mode for Elixir's mix test. https://hexdocs.pm/mix_test_interactive/ -
mecks_unit
A simple Elixir package to elegantly mock module functions within (asynchronous) ExUnit tests using Erlang's :meck library
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
Promo
coderabbit.ai

Do you think we are missing an alternative of setup_tag or a related project?
README
SetupTag
SetupTag allows you to create a test context by easily mix and match test setup functions selected by the tags applied to your test or module.
Deprecated since elixir 1.0.3.rc-1 has setup
in exunit core.
Installation
Available in Hex, the package can be installed as:
Add setup_tag to your list of dependencies in
mix.exs
:def deps do [{:setup_tag, "~> 0.1.2", only: [:test}] end
Usage
See setup_tag_text.exs
for a complete example
defmodule SetupTagTest do
use ExUnit.Case
use SetupTag
def one(ctx), do: {:ok, Map.put(ctx, :one, 1)}
def dup_one(ctx = %{one: x}), do: {:ok, %{ctx | one: x + x }}
def mul_one(ctx = %{one: x}, y), do: {:ok, %{ctx | one: x * y }}
@tag setup: [:one, :dup_one, mul_one: 3]
test "combining with a function with arguments", %{one: x} do
assert x == 6
end
end