{"id":21706990,"url":"https://github.com/dcb9/redis-lua-test","last_synced_at":"2026-05-10T14:44:44.922Z","repository":{"id":44136709,"uuid":"511951506","full_name":"dcb9/redis-lua-test","owner":"dcb9","description":"Redis Lua Scripts Unit testing environment ","archived":false,"fork":false,"pushed_at":"2022-07-08T16:52:04.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T17:19:12.817Z","etag":null,"topics":["lua-scripts","redis","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcb9.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}},"created_at":"2022-07-08T16:01:08.000Z","updated_at":"2024-07-31T07:42:49.000Z","dependencies_parsed_at":"2022-09-11T23:51:57.454Z","dependency_job_id":null,"html_url":"https://github.com/dcb9/redis-lua-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dcb9/redis-lua-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcb9%2Fredis-lua-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcb9%2Fredis-lua-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcb9%2Fredis-lua-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcb9%2Fredis-lua-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcb9","download_url":"https://codeload.github.com/dcb9/redis-lua-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcb9%2Fredis-lua-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32860226,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"ssl_error","status_checked_at":"2026-05-10T13:40:02.145Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["lua-scripts","redis","unit-testing"],"created_at":"2024-11-25T22:15:02.652Z","updated_at":"2026-05-10T14:44:44.884Z","avatar_url":"https://github.com/dcb9.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redis-lua-test\n\nUnit testing environment for Redis Lua Scripts. It is inspired by [Unit Testing Redis Lua Scripts -- Andrew Newdigate](https://blog.gitter.im/2015/01/13/testing-redis-lua-scripts/).\n\nIn my case installing and setuping all debugging tools and unit test tools properly on my laptop is very challenging, so docker is my best friend to do these things.\n\n## Usage\n\n### Step0. Install docker by your own\n\n### Step1. Clone code\n\n~~~bash\n$ git clone https://github.com/dcb9/redis-lua-test.git\n$ cd redis-lua-test\n~~~\n\n### Step2. Start redis\n\n~~~bash\n$ docker compose up redis -d\n~~~\n\n### Step3. Run test code\n\n~~~bash\n$ docker compose up lua\n~~~\n\n\t[+] Running 1/0\n\t⠿ Container redis-lua-test-lua-1 Created            0.0s\n\tAttaching to redis-lua-test-lua-1\n\tredis-lua-test-lua-1  | rm -rf luacov.stats.out ; busted -c test-incr-and-stor.lua\n\tredis-lua-test-lua-1  | ++\n\tredis-lua-test-lua-1  | 2 successes / 0 failures / 0 errors / 0 pending : 0.053681 seconds\n\tredis-lua-test-lua-1  | rm -rf luacov.report.out ; luacov '^incr' \u0026\u0026 cat luacov.report.out\n\tredis-lua-test-lua-1  | ===================================================================\n\tredis-lua-test-lua-1  | incr-and-stor.lua\n\tredis-lua-test-lua-1  | ===================================================================\n\tredis-lua-test-lua-1  |  3 local link_id = redis.call(\"INCR\", KEYS[1])\n\tredis-lua-test-lua-1  |  3 redis.call(\"HSET\", KEYS[2], link_id, ARGV[1])\n\tredis-lua-test-lua-1  |  3 return link_id\n\tredis-lua-test-lua-1  |\n\tredis-lua-test-lua-1  | ===================================================================\n\tredis-lua-test-lua-1  | Summary\n\tredis-lua-test-lua-1  | ===================================================================\n\tredis-lua-test-lua-1  |\n\tredis-lua-test-lua-1  | File              Hits Missed Coverage\n\tredis-lua-test-lua-1  | --------------------------------------\n\tredis-lua-test-lua-1  | incr-and-stor.lua 3    0      100.00%\n\tredis-lua-test-lua-1  | --------------------------------------\n\tredis-lua-test-lua-1  | Total             3    0      100.00%\n\tredis-lua-test-lua-1 exited with code 0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcb9%2Fredis-lua-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcb9%2Fredis-lua-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcb9%2Fredis-lua-test/lists"}