{"id":17190474,"url":"https://github.com/sodiray/inforce","last_synced_at":"2026-01-20T01:55:39.470Z","repository":{"id":42814999,"uuid":"268710427","full_name":"sodiray/inforce","owner":"sodiray","description":"A simple function based test runner","archived":false,"fork":false,"pushed_at":"2022-03-26T20:03:28.000Z","size":158,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T04:37:29.926Z","etag":null,"topics":["cli","javascript","nodejs","test-runner","testing"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/sodiray.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":"2020-06-02T05:36:59.000Z","updated_at":"2020-06-17T02:06:29.000Z","dependencies_parsed_at":"2022-08-19T17:51:14.252Z","dependency_job_id":null,"html_url":"https://github.com/sodiray/inforce","commit_stats":null,"previous_names":["rayepps/inforcer","sodiray/inforce"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sodiray%2Finforce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sodiray%2Finforce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sodiray%2Finforce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sodiray%2Finforce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sodiray","download_url":"https://codeload.github.com/sodiray/inforce/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247443778,"owners_count":20939747,"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":["cli","javascript","nodejs","test-runner","testing"],"created_at":"2024-10-15T01:22:47.202Z","updated_at":"2026-01-20T01:55:39.428Z","avatar_url":"https://github.com/sodiray.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :cop: Inforce\nA simple function based test runner. Its not BDD. Does not include an assertion library - only a test collector and test runner.\n\n## :package: Install\n`npm install --dev inforce`  \nor  \n`yarn add --dev inforce`\n\n## :wrench: Usage\nAdd as an npm script in `package.json`.\n```\n\"scripts\": {\n  \"test\": \"inforce\",\n  \"test-example\": \"inforce  --targetPath ./example.test.js\",\n  \"test-verbose\": inforce --level verbose\n}\n```\n\n### :abacus: Options\nCheck out the main function's params/defaults [here](https://github.com/rayepps/inforce/blob/6d400c01f1cddcf122b069ba6e0b29c1fa337af5/index.js#L10).\n\n#### --targetPath\nThe relative path to search for tests. Can be directory or file. Deafults to `./src`.\n\n#### --testFileRegex\nThe pattern to use when filtering test files. Defaults to `.*\\.test\\.js`.\n\n#### -- testFnRegex\nThe pattern to use when filtering exported functions from test modules. Defaults to `^test.*`. If you want to execute all functions exported from a test module -- so you don't have to name test functions with `test` -- set this to something like `.+`.\n\n#### --level\nThe log level to use.\n- slient: log nothing\n- default: log enough for normal dev use (default)\n- verbose: log lots. helpful for debugging test collection/running not working as you expect\n- debug: log everything. helpful for debugging issues with the inforce project\n\n## Example Output\n\u003cimg width=\"1060\" alt=\"Test output example\" src=\"https://user-images.githubusercontent.com/15269623/83482718-37e72e00-a45e-11ea-8026-004de2eb148c.png\"\u003e\n\n## Example Test File\nSee [example.test.js](https://github.com/rayepps/inforce/blob/master/example.test.js)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsodiray%2Finforce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsodiray%2Finforce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsodiray%2Finforce/lists"}