{"id":17956328,"url":"https://github.com/b0o/mulberry","last_synced_at":"2025-04-03T17:19:01.248Z","repository":{"id":88329384,"uuid":"415869249","full_name":"b0o/Mulberry","owner":"b0o","description":"🫐 Single-file Lua BDD library for testing Neovim plugins","archived":false,"fork":false,"pushed_at":"2024-05-17T05:52:22.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-09T05:45:03.728Z","etag":null,"topics":["bdd","bdd-framework","bdd-tests","lua","lua-bdd","lua-testing","neovim","neovim-lua","testing","testing-library","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"Lua","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/b0o.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}},"created_at":"2021-10-11T09:58:41.000Z","updated_at":"2024-11-02T02:45:02.000Z","dependencies_parsed_at":"2024-10-29T10:57:33.816Z","dependency_job_id":null,"html_url":"https://github.com/b0o/Mulberry","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/b0o%2FMulberry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b0o%2FMulberry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b0o%2FMulberry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/b0o%2FMulberry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/b0o","download_url":"https://codeload.github.com/b0o/Mulberry/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247043352,"owners_count":20874087,"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":["bdd","bdd-framework","bdd-tests","lua","lua-bdd","lua-testing","neovim","neovim-lua","testing","testing-library","unit-testing"],"created_at":"2024-10-29T10:37:21.126Z","updated_at":"2025-04-03T17:19:01.229Z","avatar_url":"https://github.com/b0o.png","language":"Lua","readme":"# Mulberry [![license: MIT](https://img.shields.io/github/license/b0o/mulberry?style=flat\u0026color=green)](https://mit-license.org) [![Test Status](https://img.shields.io/github/actions/workflow/status/b0o/mulberry/test.yaml?branch=main\u0026label=tests)](https://github.com/b0o/mulberry/actions/workflows/test.yaml)\n\nMulberry is a single-file Lua BDD library for testing Neovim plugins. Its goal is to make testing your plugins as easy and delicious as possible.\n\nAn example Mulberry test suite:\n\n```lua\nDescribe(\"the awesome foobar plugin\", function()\n  It(\"can do the foo.do\", function()\n    local foo = require'foo'\n    local myFoo = { lol: 'wut', yes: 'no' }\n    local bar = foo.do(myFoo)\n    Expect(bar).To.Be.A.ListLike()\n  end)\n\n  It(\"can foo.bar all the things\", function()\n    local foo = require'foo'\n    local bar = foo.bar({ allTheThings: true })\n\n    Expect(bar).To.HaveFieldPaths({\n      { 'theThings.allOfThem[1].description', Which.Is.A.String   },\n      { 'theThings.allOfThem[1].items',       Which.Is.A.ListLike },\n      { 'theThings.allOfThem[1].name',        Which.Is.A.String   },\n      { 'theThings.allOfThem[1].url',         Which.Is.A.String   },\n      { 'theThings.allOfThem[1].enabled',     Which.Is.True       },\n    })\n  end)\n\n  It(\"doesn't go meta on you\", function()\n    local foo = require'foo'\n    Expect(foo).To.Not.HaveMetatable()\n  end)\n\n  It(\"always calls you back\", function()\n    local foo = require'foo'\n    Expect(foo.someFooFunction).To.EvaluateTo(0xF00)\n  end)\nend)\n```\n\n## Changelog\n\n```\nv0.0.3                                                                2023-07-31\n  fix: ensure ListLike and DictLike values are tables\n  fix: implement list_contains for nvim \u003c v0.10\nv0.0.2                                                                2023-07-31\n  fix: matchers.In should check for existence of keys, not values\n```\n\n## License\n\n\u0026copy; 2021-2023 Maddison Hellstrom\n\nReleased under the MIT License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb0o%2Fmulberry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fb0o%2Fmulberry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fb0o%2Fmulberry/lists"}