{"id":26702002,"url":"https://github.com/malintha-induwara/coding-test-bench","last_synced_at":"2025-07-31T00:40:38.304Z","repository":{"id":284538311,"uuid":"955261434","full_name":"malintha-induwara/coding-test-bench","owner":"malintha-induwara","description":"Easy way to practice and test coding challenges within your own editor.","archived":false,"fork":false,"pushed_at":"2025-03-26T11:18:55.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T12:26:56.370Z","etag":null,"topics":["coding-challenge","testing","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/malintha-induwara.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-26T11:15:01.000Z","updated_at":"2025-03-26T11:21:15.000Z","dependencies_parsed_at":"2025-03-26T12:37:14.150Z","dependency_job_id":null,"html_url":"https://github.com/malintha-induwara/coding-test-bench","commit_stats":null,"previous_names":["malintha-induwara/coding-test-bench"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/malintha-induwara/coding-test-bench","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malintha-induwara%2Fcoding-test-bench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malintha-induwara%2Fcoding-test-bench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malintha-induwara%2Fcoding-test-bench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malintha-induwara%2Fcoding-test-bench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/malintha-induwara","download_url":"https://codeload.github.com/malintha-induwara/coding-test-bench/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malintha-induwara%2Fcoding-test-bench/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267967720,"owners_count":24173566,"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-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["coding-challenge","testing","typescript"],"created_at":"2025-03-27T02:31:54.226Z","updated_at":"2025-07-31T00:40:38.271Z","avatar_url":"https://github.com/malintha-induwara.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coding Test Bench\n\nCoding Test Bench is an easy way to practice and test coding challenges within your own editor. This project provides a structured environment to solve algorithms and data structure problems, test your solutions, and maintain an archive of your previous attempts.\n\n## Prerequisites\n\n- [Node.js](https://nodejs.org/) (v14 or higher)\n- [npm](https://www.npmjs.com/) (v6 or higher)\n\n## Installation\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/malintha-induwara/coding-test-bench.git\ncd coding-test-bench\n```\n\n2. Install dependencies:\n\n```bash\nnpm install\n```\n\n## Commands\n\n| Command            | Description                                          |\n| ------------------ | ---------------------------------------------------- |\n| `npm run generate` | Generates challenge files based on the configuration |\n| `npm run test`     | Runs tests on your challenge solutions               |\n| `npm run save`     | Archives your current solutions                      |\n| `npm run clean`    | Cleans the challenges directory                      |\n\n## Adding New Challenges\n\n### 1. Define the challenge template\n\nAdd your challenge to `scripts/templates.ts`:\n\n```typescript\n{\n  name: \"newChallenge\",\n  template: \"export default function newChallenge(param: ParamType): ReturnType {\\n  \\n}\\n\"\n}\n```\n\n### 2. Update the challenges configuration\n\nAdd your challenge name to `challenges.config.json`:\n\n```json\n{\n  \"challenges\": [\"helloWorld\",\"binarySearch\", \"bubbleSort\", \"findSum\", \"newChallenge\"]\n}\n```\n\n### 3. Create test cases\n\nCreate test files in the `__tests__` directory for your new challenge.\n\n## Workflow\n\n1. Generate challenges: `npm run generate`\n2. Solve the challenges in the `src/challenges` directory\n3. Run tests to verify your solutions: `npm run test`\n4. Save your solutions to the archive: `npm run save`\n5. Clean up for a fresh start: `npm run clean`\n\n## Available Challenges\n\nCurrently, the following challenges are available:\n- Hello World (For Testing)\n- Binary Search\n- Bubble Sort\n- Find Sum\n\n## Project Structure\n\n```\ntest-bench/\n├── src/\n│   ├── challenges/      # Generated challenge files\n│   ├── archive/         # Archived solutions\n├── __tests__/           # Test files\n├── scripts/             # Utility scripts\n│   ├── save.ts          # Script to archive solutions\n│   ├── templates.ts     # Challenge templates\n├── challenges.config.json  # Challenge configuration\n```\n\n## Tech Stack\n\n![TypeScript](https://img.shields.io/badge/TypeScript-007ACC?style=for-the-badge\u0026logo=typescript\u0026logoColor=white)\n![Node.js](https://img.shields.io/badge/Node.js-339933?style=for-the-badge\u0026logo=nodedotjs\u0026logoColor=white)\n![Vitest](https://img.shields.io/badge/Vitest-6E9F18?style=for-the-badge\u0026logo=vitest\u0026logoColor=white)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE.md) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalintha-induwara%2Fcoding-test-bench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalintha-induwara%2Fcoding-test-bench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalintha-induwara%2Fcoding-test-bench/lists"}