{"id":16568164,"url":"https://github.com/gfngfn/sesterl_testing","last_synced_at":"2026-05-28T01:31:48.663Z","repository":{"id":48672824,"uuid":"368727350","full_name":"gfngfn/sesterl_testing","owner":"gfngfn","description":"A testing library for Sesterl wrapping EUnit","archived":false,"fork":false,"pushed_at":"2021-07-14T21:55:24.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-05T10:47:04.546Z","etag":null,"topics":["erlang","sesterl","testing-tools"],"latest_commit_sha":null,"homepage":"","language":"Erlang","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/gfngfn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-19T02:56:18.000Z","updated_at":"2021-07-14T21:54:37.000Z","dependencies_parsed_at":"2022-09-06T19:22:04.148Z","dependency_job_id":null,"html_url":"https://github.com/gfngfn/sesterl_testing","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gfngfn/sesterl_testing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfngfn%2Fsesterl_testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfngfn%2Fsesterl_testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfngfn%2Fsesterl_testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfngfn%2Fsesterl_testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gfngfn","download_url":"https://codeload.github.com/gfngfn/sesterl_testing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfngfn%2Fsesterl_testing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33590884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["erlang","sesterl","testing-tools"],"created_at":"2024-10-11T21:08:32.183Z","updated_at":"2026-05-28T01:31:48.646Z","avatar_url":"https://github.com/gfngfn.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# `sesterl_testing`: A Unit Testing Library for Sesterl Programs\n\n## How to use\n\n1. Add the dependency on this library to `sesterl.yaml` in your project:\n\n   ```yaml\n   test_dependencies:\n     - name: \"sesterl_testing\"\n       source:\n         type: \"git\"\n         repository: \"https://github.com/gfngfn/sesterl_testing\"\n         spec:\n           type: \"branch\"\n           value: \"master\"\n   ```\n\n2. Generate `rebar.config` from `sesterl.yaml`:\n\n   ```console\n   $ sesterl config ./\n   ```\n\n3. Write unit tests (see the next section for detail).\n\n4. Run them:\n\n   ```console\n   $ rebar3 sesterl test\n   ```\n\n\n## How to write unit tests\n\nConsider testing the following module `Mod` for instance:\n\n```\n/* -- src/Mod.sest -- */\nmodule Mod = struct\n\n  val add(m, n) = m + n\n\nend\n```\n\nYou can write unit tests for `Mod` by providing the following module:\n\n```\n/* -- test/ModTests.sest -- */\nimport Mod\n\nmodule ModTests = #[test] struct\n\n  #[test]\n  val add_test() =\n    Testing.it(\"integer addition\", fun() -\u003e\n      assert Testing.equal(\n        -expect 99,\n        -got    Mod.add(42, 57),\n      )\n    end)\n\nend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgfngfn%2Fsesterl_testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgfngfn%2Fsesterl_testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgfngfn%2Fsesterl_testing/lists"}