{"id":23246403,"url":"https://github.com/marianmeres/test-runner","last_synced_at":"2026-03-07T02:07:11.341Z","repository":{"id":61517669,"uuid":"318241786","full_name":"marianmeres/test-runner","owner":"marianmeres","description":"Simple test framework for node.js","archived":false,"fork":false,"pushed_at":"2024-08-24T11:59:50.000Z","size":222,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-06T03:52:02.312Z","etag":null,"topics":["javascript","nodejs","testing","testing-framework","testing-tools"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/marianmeres.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-03T15:45:23.000Z","updated_at":"2024-08-24T11:59:50.000Z","dependencies_parsed_at":"2024-10-22T15:12:57.698Z","dependency_job_id":null,"html_url":"https://github.com/marianmeres/test-runner","commit_stats":{"total_commits":41,"total_committers":2,"mean_commits":20.5,"dds":"0.024390243902439046","last_synced_commit":"96d5673c61f8c57d919c92c5c489bb9bcbec7a09"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/marianmeres/test-runner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marianmeres%2Ftest-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marianmeres%2Ftest-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marianmeres%2Ftest-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marianmeres%2Ftest-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marianmeres","download_url":"https://codeload.github.com/marianmeres/test-runner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marianmeres%2Ftest-runner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30205893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"online","status_checked_at":"2026-03-07T02:00:06.765Z","response_time":53,"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":["javascript","nodejs","testing","testing-framework","testing-tools"],"created_at":"2024-12-19T07:14:45.611Z","updated_at":"2026-03-07T02:07:06.326Z","avatar_url":"https://github.com/marianmeres.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple testing framework for node.js\n\nSimple, sequential, exception based test runner for node js.\n\n## Features\n\n- usual `test`, `skip`, `only`, `todo` api\n- usual `before`, `beforeEach`, `afterEach`, `after` hooks\n- async support\n- speed\n- timeout checks\n\n#### Intentionally absent features\n\n- parallel testing\n- assertions ([tip](https://nodejs.org/api/assert.html))\n- CLI (read more below)\n\n## Installation\n\n```shell\nnpm i -D @marianmeres/test-runner\n```\n\n## Quick start\n\n```js\nconst suite = new TestRunner('My suite');\n\nsuite.test('My test', () =\u003e {\n    if (false) {\n        throw new Error('...')\n    }\n});\n\nsuite.run();\n```\n\nSee [examples](examples/) for more.\n\n## CLI\n\n```shell\nnpx test-runner [-d some-dir] [-d another-dir]\n```\n\nOr there is a `TestRunner.runAll` api, so something like this should work fine:\n\n```js\n// tests/index.js\nconst args = process.argv.slice(2);\nconst verbose = args.includes('-v');\nconst whitelist = args.filter((v) =\u003e v !== '-v');\n\nTestRunner.runAll([__dirname, '../src'], { verbose, whitelist });\n```\nrunnable as\n```shell\n$ node tests [-v] [whitelist]\n```\nor also watchable as\n```bash\n$ nodemon -q tests -- [-v] [whitelist]\n```\n\n#### How to `TestRunner.runAll([dirs], options)` ?\n\nThe `TestRunner.runAll` looks by default for `[\u003cpath\u003e/]\u003cfile\u003e.test.[tj]s`. Each test file must\nhave the suite instance \"default exported\":\n\n```js\n// src/some.test.js\nconst suite = new TestRunner('My suite');\n\n// tests definitions here...\n\nexport default suite;\n// or depending on your env:\n// module.exports = suite;\n```\n\nSee [examples](examples/) for more.\n\n## Screenshots\n\nScreenshots are taken from [examples](examples/).\n\n#### `node examples` (non verbose)\n\n![Non verbose mode](https://github.com/marianmeres/test-runner/blob/master/screenshots/non-verbose.png?raw=true)\n\n#### `node examples -v` (verbose)\n\n![Verbose mode](https://github.com/marianmeres/test-runner/blob/master/screenshots/verbose.png?raw=true)\n\n## Limitations\n\nThis runner does not spawn the actual tests executions into separate child processes.\nThis is an intentional choice, but it comes with the price of not beeing able to truly\nisolate/kill/cancel the test execution and its context (such as pending `setTimeout`s)\nwhich can sometimes lead to unexpected results.\n\n## Api\n\nCheck the [definition](./dist/mjs/test-runner.d.ts)\n[files](./dist/mjs/renderer.d.ts).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarianmeres%2Ftest-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarianmeres%2Ftest-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarianmeres%2Ftest-runner/lists"}