{"id":16486151,"url":"https://github.com/dflor003/jasmine-rowtests","last_synced_at":"2025-07-22T06:05:07.227Z","repository":{"id":5102370,"uuid":"6265760","full_name":"dflor003/jasmine-rowtests","owner":"dflor003","description":"This simple jasmine plugin allows you to create multiple specs based off of different test data (i.e. row tests).","archived":false,"fork":false,"pushed_at":"2013-06-22T19:29:51.000Z","size":132,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T00:39:56.930Z","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":"almende/almende.github.io","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dflor003.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-10-17T17:52:49.000Z","updated_at":"2017-05-30T14:58:41.000Z","dependencies_parsed_at":"2022-09-15T15:30:45.513Z","dependency_job_id":null,"html_url":"https://github.com/dflor003/jasmine-rowtests","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dflor003/jasmine-rowtests","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dflor003%2Fjasmine-rowtests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dflor003%2Fjasmine-rowtests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dflor003%2Fjasmine-rowtests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dflor003%2Fjasmine-rowtests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dflor003","download_url":"https://codeload.github.com/dflor003/jasmine-rowtests/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dflor003%2Fjasmine-rowtests/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266437369,"owners_count":23928235,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2024-10-11T13:28:30.358Z","updated_at":"2025-07-22T06:05:07.207Z","avatar_url":"https://github.com/dflor003.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jasmine-rowtests\n\nThis [Jasmine JS](https://github.com/pivotal/jasmine) plugin allows you to test one spec against multiple possible data inputs and will generate a unique spec for each input row.\n\n## Installation\n\n1. Download jasmine-rowtests\n2. Place the file somewhere your Jasmine Specrunner can reference.\n3. Include jasmine-rowtests.js after you include jasmine.js\n4. Begin using it in tests! (See usage details below)\n\n## Usage\n\nCreating row tests is pretty straight forward via the global `given(...)` function and chaining that onto an `it(params)` function. jasmine-rowtests supports two main ways of specifying row tests. For simple, one-paramter row tests, you can pass a single array to the `given(...)` function that contains one item per row as in the following example:\n\n```js\n    describe('My module', function() {\n        \n        given([\n            null,\n            undefined,\n            '',\n            0,\n            false])\n        .it('should be falsy', function(value) {\n            expect(value).toBeFalsy();\n        });\n        \n    });\n```\n\nTo create row tests for multi-parameter specs, pass an array with one array per row of parameters as in the following example:\n\n```js\n    describe('My module', function() {\n        \n        given([\n            [true, false],\n            [5, 0],\n            [true, 0],\n            ['test', '']\n        ])\n        .it('should be greater than', function(first, second) {\n            expect(first).toBeGreaterThan(second);\n        });\n        \n    });\n```\n\nThis will generate one spec per row in your row test such as the following:\n\n```\n    My module\n        given (null) - should be falsy\n        given (undefined) - should be falsy\n        given ('') - should be falsy\n        given (0) - should be falsy\n        given (false) - should be falsy\n        given (true, false) - should be greater than\n        given (5, 0) - should be greater than\n        given (true, 0) - should be greater than\n        given ('test', '') - should be greater than\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdflor003%2Fjasmine-rowtests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdflor003%2Fjasmine-rowtests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdflor003%2Fjasmine-rowtests/lists"}