{"id":13509244,"url":"https://github.com/vic/setup_tag","last_synced_at":"2025-05-13T17:43:12.220Z","repository":{"id":57547198,"uuid":"56420765","full_name":"vic/setup_tag","owner":"vic","description":"Use tags to mix and match your exunit test context","archived":false,"fork":false,"pushed_at":"2016-06-15T20:26:31.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T04:53:51.244Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-17T05:35:43.000Z","updated_at":"2021-01-18T12:34:26.000Z","dependencies_parsed_at":"2022-09-26T18:40:47.960Z","dependency_job_id":null,"html_url":"https://github.com/vic/setup_tag","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2Fsetup_tag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2Fsetup_tag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2Fsetup_tag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2Fsetup_tag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vic","download_url":"https://codeload.github.com/vic/setup_tag/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253996502,"owners_count":21996716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T02:01:05.139Z","updated_at":"2025-05-13T17:43:12.157Z","avatar_url":"https://github.com/vic.png","language":"Elixir","funding_links":[],"categories":["Testing"],"sub_categories":[],"readme":"# SetupTag\n\nSetupTag allows you to create a test context by easily mix and match\ntest setup functions selected by the tags applied to your test or module.\n\n*Deprecated* since elixir 1.0.3.rc-1 has `setup` in exunit core.\n\n## Installation\n\n[Available in Hex](https://hex.pm/packages/setup_tag), the package can be installed as:\n\n  1. Add setup_tag to your list of dependencies in `mix.exs`:\n\n        def deps do\n          [{:setup_tag, \"~\u003e 0.1.2\", only: [:test}]\n        end\n\n## Usage\n\nSee `setup_tag_text.exs` for a complete example\n\n```elixir\ndefmodule SetupTagTest do\n\n  use ExUnit.Case\n  use SetupTag\n  \n  def one(ctx), do: {:ok, Map.put(ctx, :one, 1)}\n  def dup_one(ctx = %{one: x}), do: {:ok, %{ctx | one: x + x }}\n  def mul_one(ctx = %{one: x}, y), do: {:ok, %{ctx | one: x * y }}\n  \n  @tag setup: [:one, :dup_one, mul_one: 3]\n  test \"combining with a function with arguments\", %{one: x} do\n    assert x == 6\n  end\nend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvic%2Fsetup_tag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvic%2Fsetup_tag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvic%2Fsetup_tag/lists"}