{"id":13432728,"url":"https://github.com/egoist/testen","last_synced_at":"2025-04-09T22:18:18.069Z","repository":{"id":45275261,"uuid":"51820747","full_name":"egoist/testen","owner":"egoist","description":":heavy_check_mark: Run tests for multiple versions of Node.js in local env.","archived":false,"fork":false,"pushed_at":"2021-12-25T14:12:49.000Z","size":70,"stargazers_count":175,"open_issues_count":3,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T22:18:14.077Z","etag":null,"topics":["circleci","test","travis"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/egoist.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":"2016-02-16T08:41:12.000Z","updated_at":"2023-04-20T10:19:22.000Z","dependencies_parsed_at":"2022-09-17T16:30:18.605Z","dependency_job_id":null,"html_url":"https://github.com/egoist/testen","commit_stats":null,"previous_names":[],"tags_count":56,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egoist%2Ftesten","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egoist%2Ftesten/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egoist%2Ftesten/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egoist%2Ftesten/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/egoist","download_url":"https://codeload.github.com/egoist/testen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119286,"owners_count":21050755,"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":["circleci","test","travis"],"created_at":"2024-07-31T02:01:15.805Z","updated_at":"2025-04-09T22:18:18.050Z","avatar_url":"https://github.com/egoist.png","language":"JavaScript","funding_links":[],"categories":["Packages","JavaScript","包","目录","Testing","Number"],"sub_categories":["Testing","测试","测试相关"],"readme":"👉 This project is now maintained over at [`bevry/testen`](https://github.com/bevry/testen) 👈\n\n# testen [![NPM version](https://img.shields.io/npm/v/testen.svg)](https://npmjs.com/package/testen) [![NPM downloads](https://img.shields.io/npm/dm/testen.svg)](https://npmjs.com/package/testen)\n\n[testen repo]: https://github.com/egoist/testen\n\nRun tests for multiple versions of Node.js in local env.  \n\n![preview](https://ooo.0o0.ooo/2016/04/17/571460f682122.gif)\n\n## Install\n\nYou should have `nvm` and `node \u003e= 4` installed.\n\n```bash\n$ npm install -g testen\n```\n\n## Usage\n\n```bash\n$ testen\n```\n\nThis will run `npm test` script, if `.travis.yml` or `circle.yml` exists, use node versions in it. Otherwise use [preset node versions](/lib/preset-versions.json).\n\nSometimes you wanna override these node versions, just pass `-n` to do this:\n\n```bash\n$ testen -n 0.10 -n 0.12\n\n# use system default node version\n$ testen --system\n```\n\n**Read Node.js versions from `package.json`**\n\n```json\n{\n  \"testen\": {\n    \"node\": [\"0.12.0\", \"5\", \"4.2.4\"]\n  }\n}\n```\n\n**Read test command from `package.json`**\n\n```json\n{\n  \"testen\": {\n    \"test\": \"npm run test:custom\"\n  }\n}\n```\n\n## CLI\n\n```bash\n$ testen --help\n\nUsage:\n\n  --system:             Use current node version\n  -n/--node [version]:  Add a node version to test\n  -s, --sequence:       Run tests in sequence\n  -- [command]:         The test command you expect\n  -V/--verbose:         Always output everything\n                          ~ example: there are `console.log` in test\n```\n\n## License\n\nMIT © [EGOIST](https://github.com/egoist)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegoist%2Ftesten","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fegoist%2Ftesten","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegoist%2Ftesten/lists"}