{"id":19787435,"url":"https://github.com/codeplea/minctest-node","last_synced_at":"2025-04-30T23:33:32.774Z","repository":{"id":57297357,"uuid":"89097002","full_name":"codeplea/minctest-node","owner":"codeplea","description":"tiny unit testing framework for Node.js","archived":false,"fork":false,"pushed_at":"2017-04-27T21:18:27.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T11:18:02.747Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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}},"created_at":"2017-04-22T20:24:11.000Z","updated_at":"2018-03-07T03:33:39.000Z","dependencies_parsed_at":"2022-09-01T08:40:54.175Z","dependency_job_id":null,"html_url":"https://github.com/codeplea/minctest-node","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/codeplea%2Fminctest-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeplea%2Fminctest-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeplea%2Fminctest-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeplea%2Fminctest-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeplea","download_url":"https://codeload.github.com/codeplea/minctest-node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251800761,"owners_count":21645964,"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":[],"created_at":"2024-11-12T06:23:02.567Z","updated_at":"2025-04-30T23:33:32.558Z","avatar_url":"https://github.com/codeplea.png","language":"JavaScript","readme":"# Minctest\n\nThis is a Node.js 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.js` into your project, or install using npm with\n`npm install minctest`.\n\n## Example\n\n```lua\nvar l = require(\"minctest\");\n\nl.run(\"test1\", function(){\n   l.ok('a' == 'a');          //assert true\n});\n\nl.run(\"test2\", function(){\n   l.equal(5, 5);             //compare integers\n   l.fequal(5.5, 5.5);        //compare floats\n});\n\nprocess.exit(l.results()); //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## 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-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeplea%2Fminctest-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeplea%2Fminctest-node/lists"}