{"id":18409612,"url":"https://github.com/portasynthinca3/propex","last_synced_at":"2025-10-31T02:30:33.011Z","repository":{"id":202692075,"uuid":"707943022","full_name":"portasynthinca3/propex","owner":"portasynthinca3","description":"An adaptation of PropEr for the Elixir world.","archived":false,"fork":false,"pushed_at":"2023-10-21T03:49:32.000Z","size":59,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-24T14:47:26.514Z","etag":null,"topics":["elixir","proper","property-based-testing","wip"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/propex","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/portasynthinca3.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":"2023-10-21T03:42:13.000Z","updated_at":"2023-12-18T13:16:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"3f92966f-b1b6-4e22-ae55-2e1d2eb49b70","html_url":"https://github.com/portasynthinca3/propex","commit_stats":null,"previous_names":["portasynthinca3/propex"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/portasynthinca3%2Fpropex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/portasynthinca3%2Fpropex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/portasynthinca3%2Fpropex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/portasynthinca3%2Fpropex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/portasynthinca3","download_url":"https://codeload.github.com/portasynthinca3/propex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239089874,"owners_count":19579689,"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","proper","property-based-testing","wip"],"created_at":"2024-11-06T03:26:14.767Z","updated_at":"2025-10-31T02:30:32.698Z","avatar_url":"https://github.com/portasynthinca3.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PropEx\n![shitpost-y logo](assets/logo.png)\n\n\u003csup\u003e~~I swear this is not a shitpost~~\u003c/sup\u003e\n\nAn adaptation of PropEr for the Elixir world.\n\n**WARNING!:** As of right now, this is a prototype. Feel free to open issues and\nsend pull requests!\n\n## Installation\nAdd the library as a dependency for the `test` environment\n```elixir\ndefp deps do\n  [\n    {:propex, \"~\u003e 0.1\", only: :test}\n  ]\nend\n```\n\n## Usage\nSuppose that you want to test the following module:\n```elixir\n# lib/my_lib.ex\ndefmodule MyLib do\n  @spec add(a :: integer(), b :: integer()) :: integer()\n  def add(a, b), do: a + b\nend\n```\n\n### Automatic\nYou can automatically generate the argument list assuming that you had written\na `@spec` for your function:\n```elixir\n# test/my_lib_test.exs\ndefmodule MyLibTest do\n  use ExUnit.Case\n  use PropEx\n\n  test \"add/2\" do\n    forall arguments_of MyLib.add/2 do\n      # a, b and result are assigned automatically\n      result - a == b \u0026\u0026\n      result - b == a\n    end\n  end\nend\n```\n\n### Manual\nYou can specify the variables and types yourself if you want to\n```elixir\n# test/my_lib_test.exs\ndefmodule MyLibTest do\n  use ExUnit.Case\n  use PropEx\n\n  test \"add/2\" do\n    forall [a :: integer(), b :: integer()] do\n      MyLib.add(a, b) == a + b\n    end\n  end\nend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fportasynthinca3%2Fpropex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fportasynthinca3%2Fpropex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fportasynthinca3%2Fpropex/lists"}