{"id":19787445,"url":"https://github.com/codeplea/minctest-lua","last_synced_at":"2025-07-30T10:34:38.999Z","repository":{"id":110397642,"uuid":"77697238","full_name":"codeplea/minctest-lua","owner":"codeplea","description":"tiny unit testing framework for Lua","archived":false,"fork":false,"pushed_at":"2017-04-22T04:10:20.000Z","size":5,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-24T12:44:27.693Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://codeplea.com/minctest","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeplea.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":"2016-12-30T16:22:20.000Z","updated_at":"2024-08-01T21:33:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"f3db6744-2854-4d3f-a3cf-6bb9f3f9a080","html_url":"https://github.com/codeplea/minctest-lua","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/codeplea/minctest-lua","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeplea%2Fminctest-lua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeplea%2Fminctest-lua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeplea%2Fminctest-lua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeplea%2Fminctest-lua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeplea","download_url":"https://codeload.github.com/codeplea/minctest-lua/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeplea%2Fminctest-lua/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267851207,"owners_count":24154568,"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-07-30T02:00:09.044Z","response_time":70,"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":[],"created_at":"2024-11-12T06:23:09.520Z","updated_at":"2025-07-30T10:34:38.953Z","avatar_url":"https://github.com/codeplea.png","language":"Lua","readme":"# Minctest\n\nThis is a Lua port of [Minctest](https://codeplea.com/minctest), a very\nminimal unit-testing \"framework\" originally written in ANSI C. It's handy when\nyou want some real simple unit tests for a small project.\n\nBasically, it implements assertion and equal functions. It'll track and time\nhow many tests pass and fail. Failed tests will also display which line the\nfailing test code was on.\n\n## Features\n\n- Contained in a single file.\n- Reports file and line number for failed assertions.\n- Reports run time for each test.\n- Tests continue even after an assertion fails.\n- Has assertion for checking float equality.\n- Released under the zlib license - free for nearly any use.\n\n## Installation\n\nYou can either copy `minctest.lua` into your project, or if you use luarocks\nrun `luarocks install minctest`.\n\n## Example\n\n```lua\nrequire \"minctest\"\n\nlrun(\"test1\", function()\n    lok('a' == 'a');          --assert true\nend)\n\nlrun(\"test2\", function()\n    lequal(5, 5);             --compare integers\n    lfequal(5.5, 5.5);        --compare floats\nend)\n\nreturn lresults();            --show results\n```\n\nThat produces the following output:\n\n            test1         pass: 1   fail: 0      0ms\n            test2         pass: 2   fail: 0      1ms\n    ALL TESTS PASSED (3/3)\n\n\n\n## Hints\n     All functions start with the letter 'l'.\n\n\n## Users\n\nIf you're using Minctest in your project, let me know. I could add a link back.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeplea%2Fminctest-lua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeplea%2Fminctest-lua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeplea%2Fminctest-lua/lists"}