{"id":16017569,"url":"https://github.com/maxjoehnk/test-cases","last_synced_at":"2026-01-20T00:36:08.778Z","repository":{"id":34067832,"uuid":"166425016","full_name":"maxjoehnk/test-cases","owner":"maxjoehnk","description":"Generate test cases for most javascript test runners","archived":false,"fork":false,"pushed_at":"2023-12-15T20:23:39.000Z","size":50,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T09:17:26.546Z","etag":null,"topics":["mocha","tdd","unit-tests"],"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/maxjoehnk.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":"2019-01-18T15:24:51.000Z","updated_at":"2019-07-29T07:37:11.000Z","dependencies_parsed_at":"2024-10-27T16:14:28.451Z","dependency_job_id":"f6450165-df8d-420b-8995-c91fe4b7c741","html_url":"https://github.com/maxjoehnk/test-cases","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"6f0a66867b20aca0a5c8a3eaf3173c343882a177"},"previous_names":["maxjoehnk/mocha-test-cases"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxjoehnk%2Ftest-cases","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxjoehnk%2Ftest-cases/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxjoehnk%2Ftest-cases/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxjoehnk%2Ftest-cases/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxjoehnk","download_url":"https://codeload.github.com/maxjoehnk/test-cases/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675598,"owners_count":20977378,"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":["mocha","tdd","unit-tests"],"created_at":"2024-10-08T16:20:29.569Z","updated_at":"2026-01-20T00:36:08.738Z","avatar_url":"https://github.com/maxjoehnk.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# test-cases\n\n[![Build Status](https://travis-ci.com/maxjoehnk/test-cases.svg?branch=master)](https://travis-ci.com/maxjoehnk/test-cases)\n\nThis package provides support for test cases in most test runners.\nJust call setup with the function you use to declare your test (ie `it` for jasmine or mochas bdd interface, `test` for mochas tdd interface,...).\nRight now there is Typescript support for up to 5 arguments, after which its just an `any[]`.\n\n```typescript\nimport { setup } from 'test-cases';\nimport * as mocha from 'mocha';\nimport { assert } from 'chai';\nconst test = setup(mocha.test);\n\nsuite('Test', () =\u003e {\n    // With testcases\n    test\n        .case(1, 2, 3)\n        .case(4, 5, 9)\n        .run('a + b = c', (a, b, c) =\u003e {\n            assert.equal(a + b, c);\n        });\n\n    // Without testcases\n    test('a basic test', () =\u003e {\n        assert.equal(true, true);\n    });\n});\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxjoehnk%2Ftest-cases","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxjoehnk%2Ftest-cases","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxjoehnk%2Ftest-cases/lists"}