{"id":30434278,"url":"https://github.com/bwireman/testament","last_synced_at":"2025-08-22T23:32:35.270Z","repository":{"id":307749932,"uuid":"1030591251","full_name":"bwireman/testament","owner":"bwireman","description":"Doc tests for gleam! ✨","archived":false,"fork":false,"pushed_at":"2025-08-16T17:42:20.000Z","size":54,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-16T18:34:40.581Z","etag":null,"topics":["beam","doc-tests","doctests","documentation","erlang","gleam","javascript","tests","tooling"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/testament","language":"Gleam","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/bwireman.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-01T23:11:09.000Z","updated_at":"2025-08-16T17:41:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"3e4e09bc-7db1-4521-8ac0-5ac4a485d16e","html_url":"https://github.com/bwireman/testament","commit_stats":null,"previous_names":["bwireman/testament"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/bwireman/testament","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwireman%2Ftestament","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwireman%2Ftestament/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwireman%2Ftestament/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwireman%2Ftestament/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bwireman","download_url":"https://codeload.github.com/bwireman/testament/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwireman%2Ftestament/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271717108,"owners_count":24808590,"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","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"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":["beam","doc-tests","doctests","documentation","erlang","gleam","javascript","tests","tooling"],"created_at":"2025-08-22T23:31:08.583Z","updated_at":"2025-08-22T23:32:35.265Z","avatar_url":"https://github.com/bwireman.png","language":"Gleam","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📖 Testament\n\nDoc tests for gleam! ✨\n\n[![Package Version](https://img.shields.io/hexpm/v/testament)](https://hex.pm/packages/testament)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/testament/)\n\n```sh\ngleam add --dev testament\n```\n\n## Usage:\n\n### Write some beautiful gleam code with Doc Comments 📒 (or Markdown!)\n\nMore info on [Writing Tests 🔗](https://hexdocs.pm/testament/writing_tests.html)\n\n````gleam\n////Example Module doc test\n////```gleam\n////: assert 1 + 1 == 2\n////```\n\n///Example function doc test\n///adds two Ints\n///```gleam\n///: assert example.add(1, 2) == 3\n///: assert example.add(1, -1) == 0\n///```\npub fn add(a: Int, b: Int) -\u003e Int {\n  a + b\n}\n````\n\n### Add testament to your test's main function\n\n```gleam\nimport gleeunit\nimport testament\n\npub fn main() -\u003e Nil {\n  testament.test_main(gleeunit.main)\n}\n```\n\n### ✨ Enjoy\n\n```bash\ngleam test\n  Compiling example\n   Compiled in 0.44s\n    Running example_test.main\n.\n1 test, no failures\n```\n\n### Note\n\n#### If seeing files you don't want checked in\n\n(these should get deleted after the run)\n\n```bash\necho -e \"\\ntest/testament/*\" \u003e\u003e .gitignore\n```\n\n#### If running with Deno\n\n```toml\n[javascript.deno]\nallow_read = true\nallow_write = true\nallow_env = [\"TESTAMENT_WITH_DOCS\", \"PATHEXT\", \"PATH\"]\nallow_run = [\"gleam\"]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwireman%2Ftestament","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbwireman%2Ftestament","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwireman%2Ftestament/lists"}