{"id":26948759,"url":"https://github.com/prakhar-code/testgenie","last_synced_at":"2026-05-05T23:32:56.228Z","repository":{"id":282249043,"uuid":"932268145","full_name":"Prakhar-code/TestGenie","owner":"Prakhar-code","description":"A VS Code extension that can generate Integration test cases for you from your API/swagger contract. ","archived":false,"fork":false,"pushed_at":"2025-04-27T12:10:19.000Z","size":81,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-27T13:22:37.963Z","etag":null,"topics":["code-optimization","fastapi","gemini-api","gemini-client","integration-test","javascript","swagger-contract","unit-testing","vscode-extension"],"latest_commit_sha":null,"homepage":"","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/Prakhar-code.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":"2025-02-13T16:35:14.000Z","updated_at":"2025-04-27T12:10:23.000Z","dependencies_parsed_at":"2025-04-02T21:33:40.564Z","dependency_job_id":"10b4340d-e980-4e34-b7f9-28211ee1d9ac","html_url":"https://github.com/Prakhar-code/TestGenie","commit_stats":null,"previous_names":["prakhar-code/testgenie"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Prakhar-code/TestGenie","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prakhar-code%2FTestGenie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prakhar-code%2FTestGenie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prakhar-code%2FTestGenie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prakhar-code%2FTestGenie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Prakhar-code","download_url":"https://codeload.github.com/Prakhar-code/TestGenie/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prakhar-code%2FTestGenie/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32672666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"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":["code-optimization","fastapi","gemini-api","gemini-client","integration-test","javascript","swagger-contract","unit-testing","vscode-extension"],"created_at":"2025-04-02T21:33:36.890Z","updated_at":"2026-05-05T23:32:56.213Z","avatar_url":"https://github.com/Prakhar-code.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# TestGenie 📜✨\n\n**TestGenie** is a powerful VS Code extension designed to automate the process of generating test cases. It works seamlessly with your code and API/Swagger contracts. With a backend built using FastAPI and Gemini Client, TestGenie not only generates high-quality test cases, but also helps improve your Swagger contracts, ensuring they meet the best practices and get higher scores in contract testing tools like [42Crunch](https://42crunch.com/). 🚀\n\n## Features 🛠️\n\n- **Test Case Generation**: \n  - Automatically generates test cases directly from your code.\n  - Generates test cases from your API/Swagger contracts for easy integration testing.\n  \n- **Swagger Contract Improvement**: \n  - Enhance your Swagger contract to improve its score on contract testing platforms like 42Crunch.\n  \n- **FastAPI Backend**: \n  - Robust backend built with FastAPI, allowing seamless interactions between the VS Code extension and your project.\n\n- **Gemini Client Integration**: \n  - Leverages Gemini Client to communicate efficiently with the backend for swift generation of test cases and contract improvements.\n\n## 🛠️ Installation\n\n### Prerequisites\n\n- **Node.js** and **npm** (for VS Code Extension)\n- **Python** (for FastAPI Backend)\n- **VS Code** (obviously!) 😄\n\n### Step 1: Install the VS Code Extension\n\n1. Open VS Code.\n2. Go to the Extensions tab on the left side of the screen.\n3. Search for **TestGenie** and click **Install**.\n\nAlternatively, you can download the `.vsix` file and install it manually via the command palette with `Extensions: Install from VSIX`.\n\n### Step 2: Set up the Backend\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/Prakhar-code/TestGenie.git\n   cd TestGenie/backend\n   ```\n\n2. Install required Python dependencies:\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n3. Run the FastAPI backend:\n\n   ```bash\n   uvicorn main:app --reload\n   ```\n\n4. Ensure the backend is running on `http://localhost:8000`.\n\n### Step 3: Configuration (Optional)\n\nTestGenie can be configured for specific behaviors, like test case generation settings and Swagger contract improvements. Check the `config.json` in the extension’s settings or modify the FastAPI backend to meet your needs.\n\n## 📝 Usage\n\n1. **Generate Test Cases from Code**:\n   - Open a JavaScript/TypeScript file in VS Code.\n   - Use the `TestGenie: Generate Test Cases` command from the Command Palette.\n   - Test cases will be automatically generated and inserted into your project!\n\n2. **Generate Test Cases from Swagger Contract**:\n   - Open your Swagger contract (either locally or via an API endpoint).\n   - Use the `TestGenie: Generate Test Cases from Swagger` command.\n   - TestGenie will parse the contract and generate relevant test cases for you.\n\n3. **Improve Swagger Contract**:\n   - Use the `TestGenie: Improve Swagger Contract` command.\n   - TestGenie will analyze your Swagger contract and suggest improvements to make it more robust, ensuring a better score on tools like 42Crunch.\n\n## 💡 Why Use TestGenie?\n\n- **Automation**: Save time by automating the generation of test cases.\n- **Boost Test Quality**: Generate comprehensive test cases directly from code and API contracts, making sure you don't miss edge cases.\n- **Improve API Contracts**: With built-in contract improvement features, your Swagger API contracts will always be top-notch.\n- **Seamless Integration**: Easily integrates into your existing development workflow in VS Code.\n\n## ⚡ Contributing\n\nWe welcome contributions to TestGenie! If you'd like to help improve the project, follow these steps:\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature/your-feature-name`).\n3. Make your changes and commit them (`git commit -am 'Add new feature'`).\n4. Push to your branch (`git push origin feature/your-feature-name`).\n5. Open a pull request with a clear description of your changes.\n\n---\n\nFeel free to adjust the URLs, installation steps, and any other project-specific details as necessary!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprakhar-code%2Ftestgenie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprakhar-code%2Ftestgenie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprakhar-code%2Ftestgenie/lists"}