{"id":25448202,"url":"https://github.com/tagbase-io/tracee","last_synced_at":"2025-11-02T00:30:37.034Z","repository":{"id":234944854,"uuid":"789782436","full_name":"tagbase-io/tracee","owner":"tagbase-io","description":"Trace function calls in concurrent Elixir processes.","archived":false,"fork":false,"pushed_at":"2024-07-02T08:56:51.000Z","size":28,"stargazers_count":11,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-29T20:08:49.933Z","etag":null,"topics":["elixir","tracing"],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/tracee","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tagbase-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-21T14:46:59.000Z","updated_at":"2024-10-21T03:51:34.000Z","dependencies_parsed_at":"2024-05-02T18:49:20.174Z","dependency_job_id":"6459939d-12c6-4976-97a9-4ff4a1e89c64","html_url":"https://github.com/tagbase-io/tracee","commit_stats":null,"previous_names":["tagbase-io/tracee"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tagbase-io%2Ftracee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tagbase-io%2Ftracee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tagbase-io%2Ftracee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tagbase-io%2Ftracee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tagbase-io","download_url":"https://codeload.github.com/tagbase-io/tracee/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239349874,"owners_count":19624204,"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":["elixir","tracing"],"created_at":"2025-02-17T19:19:05.193Z","updated_at":"2025-02-17T19:19:05.603Z","avatar_url":"https://github.com/tagbase-io.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tracee\n\n[![Hex.pm](https://img.shields.io/hexpm/v/tracee.svg?style=flat-square)](https://hex.pm/packages/tracee)\n![CI Status](https://img.shields.io/github/actions/workflow/status/tagbase-io/tracee/test.yml?branch=main\u0026style=flat-square)\n\nThis Elixir library offers functionality to trace and assert expected function\ncalls within concurrent Elixir processes.\n\nThis allows you to ensure that destructive and/or expensive functions are only\ncalled the expected number of times. For more information, see [the Elixir forum\npost](https://elixirforum.com/t/tracing-and-asserting-function-calls/63035) that\nmotivated the development of this library.\n\n## Installation\n\nJust add `tracee` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:tracee, \"~\u003e 0.2.0\", only: :test}\n  ]\nend\n```\n\n## Usage\n\n```elixir\ndefmodule ModuleTest do\n  use ExUnit.Case\n\n  import Tracee\n\n  setup :verify_on_exit!\n\n  describe \"fun/0\" do\n    test \"calls expensive function only once\" do\n      expect(AnotherModule, :expensive_fun, 1)\n\n      assert Module.fun()\n    end\n\n    test \"calls expensive function only once from another process\" do\n      expect(AnotherModule, :expensive_fun, 1)\n\n      assert fn -\u003e Module.fun() end\n             |\u003e Task.async()\n             |\u003e Task.await()\n    end\n\n    test \"never calls expensive function\" do\n      expect(AnotherModule, :expensive_fun, 1, 0)\n\n      assert Module.fun()\n    end\n  end\nend\n```\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftagbase-io%2Ftracee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftagbase-io%2Ftracee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftagbase-io%2Ftracee/lists"}