{"id":15484407,"url":"https://github.com/sammarks/yaml-to-test","last_synced_at":"2026-01-28T08:09:24.237Z","repository":{"id":147095327,"uuid":"197030242","full_name":"sammarks/yaml-to-test","owner":"sammarks","description":"Automatically generates test scaffolds based on a YAML file configuration.","archived":false,"fork":false,"pushed_at":"2019-07-15T16:04:15.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-07T05:35:47.278Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/sammarks.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-15T15:58:22.000Z","updated_at":"2019-07-15T16:05:28.000Z","dependencies_parsed_at":"2023-04-26T09:23:25.949Z","dependency_job_id":null,"html_url":"https://github.com/sammarks/yaml-to-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sammarks/yaml-to-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sammarks%2Fyaml-to-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sammarks%2Fyaml-to-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sammarks%2Fyaml-to-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sammarks%2Fyaml-to-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sammarks","download_url":"https://codeload.github.com/sammarks/yaml-to-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sammarks%2Fyaml-to-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28842833,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T07:39:25.367Z","status":"ssl_error","status_checked_at":"2026-01-28T07:39:24.487Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-02T05:40:43.242Z","updated_at":"2026-01-28T08:09:24.211Z","avatar_url":"https://github.com/sammarks.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# YAML \u0026rarr; Test\n\nA simple CLI to accept a list of YAML files as an input, and converts and replaces them with test file scaffolds according to the structure of their contents.\n\nFor example, let's say you have this file:\n\n#### Lesson.test.yaml\n```yaml\n- '#isOwn()'\n  - when the current user is a student\n    - and they are assigned the lesson\n      - returns true\n    - and they are not assigned the lesson\n      - returns false\n  - when the current user is a teacher\n    - and they created the lesson\n      - returns true\n    - and they did not create the lesson\n      - returns false\n  - when the current user is not a teacher or a student\n    - returns false\n```\n\nIf you execute the CLI like so:\n\n```sh\nyaml-to-test ./*.test.yaml\n```\n\nIt will transform that file to be this one:\n\n#### Lesson.test.js\n```js\ndescribe('#isOwn()', () =\u003e {\n  describe('when the current user is a student', () =\u003e {\n    describe('and they are assigned the lesson', () =\u003e {\n      it('returns true', () =\u003e {})\n    })\n    describe('and they are not assigned the lesson', () =\u003e {\n      it('returns false', () =\u003e {})\n    })\n  })\n  describe('when the current user is a teacher', () =\u003e {\n    describe('and they created the lesson', () =\u003e {\n      it('returns true', () =\u003e {})\n    })\n    describe('and they did not create the lesson', () =\u003e {\n      it('returns false', () =\u003e {})\n    })\n  })\n  describe('when the current user is not a teacher or a student', () =\u003e {\n    it('returns false', () =\u003e {})\n  })\n})\n```\n\n## Features\n\n- Recursively search through directories based on glob pattern added to CLI.\n- Support both Typescript, vanilla ES6, and CoffeeScript for test generation.\n- Support multiple test frameworks (Mocha, Jest, etc)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsammarks%2Fyaml-to-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsammarks%2Fyaml-to-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsammarks%2Fyaml-to-test/lists"}